status: format log row in SetErrored correctly

This commit is contained in:
Viktor Tigerström 2024-01-05 02:04:50 +01:00
parent 2d726f8dc1
commit 3b83d6e102
No known key found for this signature in database
GPG key ID: B984570980684DCC

View file

@ -188,14 +188,15 @@ func (s *Manager) SetErrored(name string, errStr string,
s.mu.Lock()
defer s.mu.Unlock()
log.Debugf("Setting the %s sub-server as errored: %s", name, errStr)
err := fmt.Sprintf(errStr, params...)
log.Debugf("Setting the %s sub-server as errored: %s", name, err)
ss, ok := s.subServers[name]
if !ok {
return
}
err := fmt.Sprintf(errStr, params...)
log.Errorf("could not start the %s sub-server: %s", name, err)
ss.Running = false