file log path supports relative path

This commit is contained in:
MaysWind
2021-06-06 22:10:03 +08:00
parent 971f9381b9
commit d7e60c65d6
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -368,7 +368,9 @@ func loadLogConfiguration(config *Config, configFile *ini.File, sectionName stri
config.LogLevel = getLogLevel(getConfigItemStringValue(configFile, sectionName, "level"), defaultLoglevel)
if config.EnableFileLog {
config.FileLogPath = getConfigItemStringValue(configFile, sectionName, "log_path")
fileLogPath := getConfigItemStringValue(configFile, sectionName, "log_path")
finalFileLogPath, _ := getFinalPath(config.WorkingPath, fileLogPath)
config.FileLogPath = finalFileLogPath
}
return nil