setting.go:

- Leave the position of the log file free
This commit is contained in:
Zorglube 2020-10-24 01:08:57 +02:00
parent 6b7e6cd083
commit 7349628293
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func LoadSettings(filename string) (*Settings, error) {
}
s.filename = filename
var logFileDir string = common.RunPath() + "/" + s.LogFile
var logFileDir string = s.LogFile
fmt.Printf("Log file: %s\n", logFileDir)
if err = common.SetupLogging(s.LogLevel, logFileDir); err != nil {
return nil, fmt.Errorf("Unable to setup logger: %s", err)