mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 11:56:53 +00:00
change default log path
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user