Improve logging

This commit is contained in:
Daniel 2021-10-14 14:19:01 +02:00
parent 17da727ac0
commit d8ced7e4f0

View file

@ -51,7 +51,7 @@ func RestartNow() {
func automaticRestart(_ context.Context, _ *modules.Task) error { func automaticRestart(_ context.Context, _ *modules.Task) error {
if restartTriggered.SetToIf(false, true) { if restartTriggered.SetToIf(false, true) {
log.Info("updates: initiating automatic restart") log.Info("updates: initiating (automatic) restart")
modules.SetExitStatusCode(RestartExitCode) modules.SetExitStatusCode(RestartExitCode)
// Do not use a worker, as this would block itself here. // Do not use a worker, as this would block itself here.
go modules.Shutdown() //nolint:errcheck go modules.Shutdown() //nolint:errcheck