diff options
author | Gary Kotton <gkotton@vmware.com> | 2019-05-07 17:49:00 -0700 |
---|---|---|
committer | garyk <gkotton@vmware.com> | 2019-05-14 16:18:15 +0000 |
commit | 9eef65739a347a07b296bc77d739be31be7e2180 (patch) | |
tree | 0f04fcb77aaf2345e7fbda5a8fe48870911066c5 | |
parent | 42d240a2eb200d93fd1a1d9962f4a747eb31985b (diff) | |
download | oslo-vmware-9eef65739a347a07b296bc77d739be31be7e2180.tar.gz |
Ensure that log message with non-ascii code does not raise exception
This may cause the looping task to freeze.
Change-Id: Ibf1ace8f0c45a56738432028c8125154c5aa3c15
-rw-r--r-- | oslo_vmware/common/loopingcall.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/oslo_vmware/common/loopingcall.py b/oslo_vmware/common/loopingcall.py index c50832f..0cc9ed5 100644 --- a/oslo_vmware/common/loopingcall.py +++ b/oslo_vmware/common/loopingcall.py @@ -85,9 +85,7 @@ class FixedIntervalLoopingCall(LoopingCallBase): except LoopingCallDone as e: self.stop() done.send(e.retvalue) - except Exception as e: - LOG.error('in fixed duration looping call. Error: %s', - str(e)) + except Exception: done.send_exception(*sys.exc_info()) return else: |