hauleth / erlang-systemd

systemd utilities for Erlang applications
Apache License 2.0
174 stars 19 forks source link

Automatically set kmsg formatter #18

Closed hauleth closed 4 years ago

hauleth commented 4 years ago

Now the systemd application will check the device and inode number set to the stdout and/or stderr on startup and will automatically set proper formatting to include the level prefix to all lines of the output to provide information for journal. This can be disabled by setting systemd.auto_formatter environment option to false (discouraged).

codecov[bot] commented 4 years ago

Codecov Report

Merging #18 into master will decrease coverage by 0.07%. The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
- Coverage   95.78%   95.71%   -0.08%     
==========================================
  Files           8        8              
  Lines         261      280      +19     
==========================================
+ Hits          250      268      +18     
- Misses         11       12       +1     
Impacted Files Coverage Δ
src/systemd_kmsg_formatter.erl 100.00% <100.00%> (ø)
src/systemd_app.erl 85.71% <66.66%> (-14.29%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b57ff4e...33cce22. Read the comment docs.