change default log path

pull/310/head
刘河 2019-12-14 12:25:52 +08:00
parent fd3ae7fa9b
commit 3354a48c35
1 changed files with 2 additions and 2 deletions

View File

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