summaryrefslogtreecommitdiffstats
path: root/utils/config.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2017-04-04 14:13:31 -0300
committerGeorge Goldberg <george@gberg.me>2017-04-04 18:13:31 +0100
commit0b5c0794fdcbb551c1233dcdfbdf5c7deb585fd6 (patch)
tree8086da27a0424f8c0683f3c112cde198b7490bb6 /utils/config.go
parentac0c7e30ca0b27a18525a810be107f056bf8e801 (diff)
downloadchat-0b5c0794fdcbb551c1233dcdfbdf5c7deb585fd6.tar.gz
chat-0b5c0794fdcbb551c1233dcdfbdf5c7deb585fd6.tar.bz2
chat-0b5c0794fdcbb551c1233dcdfbdf5c7deb585fd6.zip
PLT-5906 Set logs path instead log filename (#5949)
* PLT-5906 Set logs path instead log filename * feedback review
Diffstat (limited to 'utils/config.go')
-rw-r--r--utils/config.go5
1 files changed, 3 insertions, 2 deletions
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
}
}