Skip to content

Commit

Permalink
*: Log error on shutdown
Browse files Browse the repository at this point in the history
Refs #1045.

More info required to understand what is happening.

Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Jan 24, 2025
1 parent 3d3b41e commit 480835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/s3-gw/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ func (ms *Service) ShutDown(ctx context.Context) {
ms.log.Info("shutting down service", zap.String("endpoint", ms.Addr))
err := ms.Shutdown(ctx)
if err != nil {
ms.log.Panic("can't shut down service")
ms.log.Fatal("gracefully shutting down failed", zap.Error(err))
}
}

0 comments on commit 480835e

Please sign in to comment.