Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid to crash on outputting log at the early stage config parser
By #3352, an early stage config parser is introduced to enable setting log rotation by system config. While this stage, the global logger doesn't exist yet, so that it causes crash when the config parser try to output log. This commit avoid the crash by checking $log. Same logs will be output at the later stage so that it's not needed in the early stage. See also: fluent/fluentd-kubernetes-daemonset#583 Signed-off-by: Takuro Ashie <[email protected]>
- Loading branch information