Use %w for error wrapping in log messages across multiple files

This commit is contained in:
2025-10-27 17:54:39 +01:00
parent 1814772fa2
commit 5ef0654cdd
8 changed files with 27 additions and 27 deletions

View File

@@ -102,7 +102,7 @@ func (l *lifecycleManager) checkTimeouts() {
for _, name := range timeoutInstances {
log.Printf("Instance %s has timed out, stopping it", name)
if _, err := l.manager.StopInstance(name); err != nil {
log.Printf("Error stopping instance %s: %v", name, err)
log.Printf("Error stopping instance %s: %w", name, err)
} else {
log.Printf("Instance %s stopped successfully", name)
}