Skip to content

Commit

Permalink
update log string
Browse files Browse the repository at this point in the history
  • Loading branch information
cheukt committed Sep 23, 2024
1 parent d5d4999 commit 1beeb43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion module/modmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,11 @@ func (mgr *Manager) newOnUnexpectedExitHandler(mod *module) func(exitCode int) b
if orphanedResourceNames := mgr.attemptRestart(mgr.restartCtx, mod); orphanedResourceNames != nil {
if mgr.removeOrphanedResources != nil {
mgr.removeOrphanedResources(mgr.restartCtx, orphanedResourceNames)
mgr.logger.Debugw("Removed resources after failed module restart", "module", mod.cfg.Name, "resources", orphanedResourceNames)
rNames := make([]string, len(orphanedResourceNames))
for idx, rName := range orphanedResourceNames {
rNames[idx] = rName.String()
}
mgr.logger.Debugw("Removed resources after failed module restart", "module", mod.cfg.Name, "resources", rNames)
}
return false
}
Expand Down

0 comments on commit 1beeb43

Please sign in to comment.