mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-07 12:52:52 -05:00
toggle json logging via config
This commit is contained in:
@@ -55,6 +55,10 @@ func initConfig() {
|
||||
zerolog.SetGlobalLevel(zerolog.Disabled)
|
||||
}
|
||||
|
||||
if cfg.JSONLogs {
|
||||
log.Logger = log.Output(os.Stdout)
|
||||
}
|
||||
|
||||
if !cfg.DisableUpdateCheck && !machineOutput {
|
||||
if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") &&
|
||||
Version != "dev" {
|
||||
|
||||
Reference in New Issue
Block a user