Merge "When looping call fails do not log the exception trace"

This commit is contained in:
Zuul 2019-04-23 21:31:50 +00:00 committed by Gerrit Code Review
commit dda60b5204
1 changed files with 3 additions and 2 deletions

View File

@ -85,8 +85,9 @@ class FixedIntervalLoopingCall(LoopingCallBase):
except LoopingCallDone as e:
self.stop()
done.send(e.retvalue)
except Exception:
LOG.exception('in fixed duration looping call')
except Exception as e:
LOG.error('in fixed duration looping call. Error: %s',
str(e))
done.send_exception(*sys.exc_info())
return
else: