mirror of https://github.com/ehang-io/nps
change default log path
parent
fd3ae7fa9b
commit
3354a48c35
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue