Initialize log config earlier to prevent trace messages being printed early on (#1939)
like TRC DNS configuration loaded dns_config={....}
This commit is contained in:
parent
7fd2485000
commit
a9763c9692
2 changed files with 6 additions and 5 deletions
|
@ -56,8 +56,6 @@ func initConfig() {
|
|||
|
||||
machineOutput := HasMachineOutputFlag()
|
||||
|
||||
zerolog.SetGlobalLevel(cfg.Log.Level)
|
||||
|
||||
// If the user has requested a "node" readable format,
|
||||
// then disable login so the output remains valid.
|
||||
if machineOutput {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue