Skip to content

Commit 095684c

Browse files
fix: remove duplicate error logging in light node shutdown (#2841)
Removed duplicate error logging statement that used the wrong variable. The shutdown errors are already properly logged through multiErr unwrapping, so the extra line was redundant and could log nil or only the last error instead of all accumulated shutdown errors.
1 parent e7d78cb commit 095684c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

node/light.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ func (ln *LightNode) Run(parentCtx context.Context) error {
163163
} else {
164164
ln.Logger.Error().Err(multiErr).Msg("error during shutdown")
165165
}
166-
ln.Logger.Error().Err(err).Msg("error during shutdown")
167166
}
168167

169168
if ctx.Err() != nil {

0 commit comments

Comments
 (0)