activate json logs (#2424)
Co-authored-by: jan.sulimma <jan.sulimma@zigpos.com>
This commit is contained in:
parent
b943cce868
commit
c61fbe9c5f
1 changed files with 4 additions and 4 deletions
|
@ -58,10 +58,10 @@ func initConfig() {
|
|||
zerolog.SetGlobalLevel(zerolog.Disabled)
|
||||
}
|
||||
|
||||
// logFormat := viper.GetString("log.format")
|
||||
// if logFormat == types.JSONLogFormat {
|
||||
// log.Logger = log.Output(os.Stdout)
|
||||
// }
|
||||
logFormat := viper.GetString("log.format")
|
||||
if logFormat == types.JSONLogFormat {
|
||||
log.Logger = log.Output(os.Stdout)
|
||||
}
|
||||
|
||||
disableUpdateCheck := viper.GetBool("disable_check_updates")
|
||||
if !disableUpdateCheck && !machineOutput {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue