fix(frpLogger): replace all logs fetching method to read corresponding file in the logsPath

This commit is contained in:
2026-06-06 14:31:42 +08:00
parent 5e9bdf02f9
commit a0634703ea
8 changed files with 113 additions and 1127 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ func syncRunningInstancesToWatchdog() {
func ensureWatchdogProcess() error {
watchdogName, err := getWatchdogBinaryName()
exec.Command("chmod", "+x", filepath.Join(global.CurrentPath, "watchdog", watchdogName)).Run()
exec.Command("chmod", "+x", filepath.Join(global.CurrentPath, watchdogName)).Run()
if err != nil {
return err
}
@@ -105,7 +105,7 @@ func ensureWatchdogProcess() error {
}
postLog.Info(fmt.Sprintf("Watchdog process %s is not running, starting it...", watchdogName))
watchdogPath := filepath.Join(global.CurrentPath, "watchdog", watchdogName)
watchdogPath := filepath.Join(global.CurrentPath, watchdogName)
if !utils.IsFileExist(watchdogPath) {
return fmt.Errorf("watchdog binary not found: %s", watchdogPath)
}