toggle json logging via config

This commit is contained in:
Igor Perepilitsyn committed 2022-08-26 13:10:51 +02:00
1 parent cc0bec15ef
commit 2403c0e198
3 files changed
+9

No files matched your search

+4
View File
@@ -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" {