mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-16 11:45:23 +09:00
toggle json logging via config
This commit is contained in:
1 parent
cc0bec15ef
commit
2403c0e198
3 files changed
+9
No files matched your search
@@ -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