From 0b5c0794fdcbb551c1233dcdfbdf5c7deb585fd6 Mon Sep 17 00:00:00 2001 From: enahum Date: Tue, 4 Apr 2017 14:13:31 -0300 Subject: PLT-5906 Set logs path instead log filename (#5949) * PLT-5906 Set logs path instead log filename * feedback review --- utils/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/config.go') diff --git a/utils/config.go b/utils/config.go index 23855b0e7..cecc7a361 100644 --- a/utils/config.go +++ b/utils/config.go @@ -27,6 +27,7 @@ const ( MODE_BETA = "beta" MODE_PROD = "prod" LOG_ROTATE_SIZE = 10000 + LOG_FILENAME = "mattermost.log" ) var cfgMutex = &sync.Mutex{} @@ -136,9 +137,9 @@ func configureLog(s *model.LogSettings) { func GetLogFileLocation(fileLocation string) string { if fileLocation == "" { - return FindDir("logs") + "mattermost.log" + return FindDir("logs") + LOG_FILENAME } else { - return fileLocation + return fileLocation + LOG_FILENAME } } -- cgit v1.2.3-1-g7c22