Fix adding prefix to file logs

This commit is contained in:
Richard Cooper
2020-11-22 03:35:05 +03:00
committed by Christian Rocha
parent ec67f23001
commit f5fde56af0

View File

@@ -23,5 +23,6 @@ func LogToFile(path string, prefix string) (*os.File, error) {
return nil, err
}
log.SetOutput(f)
log.SetPrefix(prefix)
return f, nil
}