mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
status: format log row in SetErrored correctly
This commit is contained in:
parent
2d726f8dc1
commit
3b83d6e102
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue