change default log path

This commit is contained in:
刘河 2019-12-14 12:25:52 +08:00
parent fd3ae7fa9b
commit 3354a48c35

View File

@ -48,9 +48,9 @@ func IsWindows() bool {
func GetLogPath() string { func GetLogPath() string {
var path string var path string
if IsWindows() { if IsWindows() {
path = GetAppPath() path = filepath.Join(GetAppPath(), "nps.log")
} else { } else {
path = "/tmp" path = "/var/log/nps.log"
} }
return path return path
} }