Fix: Only log subproc error when it's not nil
This commit is contained in:
@@ -214,7 +214,9 @@ func (l *looper) Run(ctx context.Context, wg *sync.WaitGroup) {
|
||||
}
|
||||
|
||||
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