From f25add7834032b107223bfa5d71b0d70335398fb Mon Sep 17 00:00:00 2001 From: Utsa Bhattacharjya Date: Fri, 28 Aug 2020 15:08:37 -0700 Subject: [PATCH] Add the only when logfile environment Variable is set --- agent/logger/log.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/agent/logger/log.go b/agent/logger/log.go index 39861e4155e..17a45674922 100644 --- a/agent/logger/log.go +++ b/agent/logger/log.go @@ -86,9 +86,10 @@ func seelogConfig() string { ` c += platformLogConfig() c += ` - - ` + ` if Config.logfile != "" { + c += ` + ` if Config.RolloverType == "size" { c += ` ` } + c += ` + ` } c += ` -