diff --git a/util/log.go b/util/log.go index 11bb7efa7..74b99311e 100644 --- a/util/log.go +++ b/util/log.go @@ -19,9 +19,9 @@ func InitLog(logLevel string, logPath string) error { log.Errorf("Failed parsing log-level %s: %s", logLevel, err) return err } - custom_outputs := []string{"console", "syslog"}; + customOutputs := []string{"console", "syslog"}; - if logPath != "" && !slices.Contains(custom_outputs, logPath) { + if logPath != "" && !slices.Contains(customOutputs, logPath) { lumberjackLogger := &lumberjack.Logger{ // Log file absolute path, os agnostic Filename: filepath.ToSlash(logPath), diff --git a/util/syslog_windows.go b/util/syslog_windows.go index a38d90054..171c1a459 100644 --- a/util/syslog_windows.go +++ b/util/syslog_windows.go @@ -1,3 +1,6 @@ package util -func AddSyslogHook() {} +func AddSyslogHook() { + // The syslog package is not available for Windows. This adapter is needed + // to handle windows build. +}