mirror of
https://github.com/juanfont/headscale.git
synced 2025-02-15 10:52: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)
|
zerolog.SetGlobalLevel(zerolog.Disabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
// logFormat := viper.GetString("log.format")
|
logFormat := viper.GetString("log.format")
|
||||||
// if logFormat == types.JSONLogFormat {
|
if logFormat == types.JSONLogFormat {
|
||||||
// log.Logger = log.Output(os.Stdout)
|
log.Logger = log.Output(os.Stdout)
|
||||||
// }
|
}
|
||||||
|
|
||||||
disableUpdateCheck := viper.GetBool("disable_check_updates")
|
disableUpdateCheck := viper.GetBool("disable_check_updates")
|
||||||
if !disableUpdateCheck && !machineOutput {
|
if !disableUpdateCheck && !machineOutput {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user