Skip to content

Commit

Permalink
runtime: log shutdown trace only in cloud
Browse files Browse the repository at this point in the history
The log message 'service shutdown complete' was being
logged even for local development. Change it to only
log for cloud environments.
  • Loading branch information
eandre committed Aug 16, 2023
1 parent c329694 commit 6f404ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion runtime/appruntime/apisdk/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (mgr *Manager) Shutdown(p *shutdown.Process) (err error) {
defer func() {
if r := recover(); r != nil {
mgr.rootLogger.Error().Str("service", h.name).Interface("panic", r).Msg("service shutdown panicked")
} else {
} else if mgr.runtime.EnvCloud != "local" {
mgr.rootLogger.Trace().Str("service", h.name).Msg("service shutdown complete")
}
}()
Expand Down

0 comments on commit 6f404ed

Please sign in to comment.