summaryrefslogtreecommitdiffstats
path: root/utils/config.go
diff options
context:
space:
mode:
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
}
}