mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 17:30:20 +08:00
change default log path
This commit is contained in:
1 parent
fd3ae7fa9b
commit
3354a48c35
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user