mirror of
https://github.com/juanfont/headscale.git
synced 2025-02-14 10:22:28 -05:00
activate json logs (#2424)
Co-authored-by: jan.sulimma <jan.sulimma@zigpos.com>
This commit is contained in:
parent
b943cce868
commit
c61fbe9c5f
@ -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…
x
Reference in New Issue
Block a user