Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(log): ingore error log when journal is disable
There is no systemd and journal in our distribution, and when using ignition, many warning logs are printed. The changes in this PR will check if there is a journal in the current distribution, and if not, it will not pass the logs to the journal. Notes: The distro Alpine has no journal. Add conditional to avoid failure due to logging method not being available. Signed-off-by: Kevin Cui <[email protected]>
- Loading branch information