mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-16 21:50:22 +02:00
Fix: Only log subproc error when it's not nil
This commit is contained in:
@@ -34,7 +34,9 @@ type looper struct {
|
||||
}
|
||||
|
||||
func (l *looper) logAndWait(ctx context.Context, err error) {
|
||||
l.logger.Error(err)
|
||||
if err != nil {
|
||||
l.logger.Error(err)
|
||||
}
|
||||
l.logger.Info("retrying in %s", l.backoffTime)
|
||||
timer := time.NewTimer(l.backoffTime)
|
||||
l.backoffTime *= 2
|
||||
|
||||
Reference in New Issue
Block a user