1
0
刘河 5 жил өмнө
parent
commit
3354a48c35
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      lib/common/run.go

+ 2 - 2
lib/common/run.go

@@ -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
 }