Improve logging for verifyRunning (#4562)

This commit is contained in:
kaidaguerre
2025-06-11 10:30:08 +01:00
committed by GitHub
parent d1136c3c5d
commit d97cacab4a

View File

@@ -99,7 +99,7 @@ func (s *State) verifyRunning() (bool, error) {
log.Printf("[TRACE] verify plugin manager running, pid: %d", s.Pid) log.Printf("[TRACE] verify plugin manager running, pid: %d", s.Pid)
p, err := utils.FindProcess(s.Pid) p, err := utils.FindProcess(s.Pid)
if err != nil { if err != nil {
log.Printf("[TRACE] error finding process %d: %s", s.Pid, err) log.Printf("[WARN] error finding process %d: %s", s.Pid, err)
return false, err return false, err
} }
if p == nil { if p == nil {
@@ -138,7 +138,7 @@ func (s *State) kill() (err error) {
// kill the plugin manager process by sending a SIGTERM (to give it a chance to clean up its children) // kill the plugin manager process by sending a SIGTERM (to give it a chance to clean up its children)
err = process.SendSignal(syscall.SIGTERM) err = process.SendSignal(syscall.SIGTERM)
if err != nil { if err != nil {
log.Println("[TRACE] tried to kill plugin_manager, but couldn't send signal to process", err) log.Println("[WARN] tried to kill plugin_manager, but couldn't send signal to process", err)
return err return err
} }