fix(frpLogger): replace all logs fetching method to read corresponding file in the logsPath
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user