Quellcode durchsuchen

change default log path

刘河 vor 5 Jahren
Ursprung
Commit
3354a48c35
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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
 }