Agent logs: output to stderr errors and above (#838)

* Agent logs: output to stderr errors and above
This commit is contained in:
Igor Gov
2022-02-22 14:02:51 +02:00
committed by GitHub
parent cf3106f636
commit 58a17897cf
3 changed files with 18 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ const (
func main() {
logLevel := determineLogLevel()
logger.InitLoggerStderrOnly(logLevel)
logger.InitLoggerStd(logLevel)
flag.Parse()
if err := config.LoadConfig(); err != nil {
logger.Log.Fatalf("Error loading config file %v", err)