diff options
author | Gabriele <gsantomaggio@suse.com> | 2019-05-24 22:02:19 +0200 |
---|---|---|
committer | Gabriele <gsantomaggio@suse.com> | 2019-05-24 22:03:40 +0200 |
commit | da6caaef0701e46f24869a33c5875b36e0e0f9af (patch) | |
tree | 74255ec099f78c2ecaa9b3eb3eeed81cf5f2898e | |
parent | fe0ac3195ef1dcb1b481f0f5cf6ff2b55ca6056d (diff) | |
download | oslo-messaging-9.7.1.tar.gz |
Add thread name to the RabbitMQ heartbeat thread9.7.1
With this information it is easier to debug the application.
Change-Id: Icafae894ede54d8e802aef556e4239408cc23bcd
-rw-r--r-- | oslo_messaging/_drivers/impl_rabbit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py index 6158300..b08b6ef 100644 --- a/oslo_messaging/_drivers/impl_rabbit.py +++ b/oslo_messaging/_drivers/impl_rabbit.py @@ -898,7 +898,7 @@ class Connection(object): if self._heartbeat_supported_and_enabled(): self._heartbeat_exit_event = eventletutils.Event() self._heartbeat_thread = threading.Thread( - target=self._heartbeat_thread_job) + target=self._heartbeat_thread_job, name="Rabbit-heartbeat") self._heartbeat_thread.daemon = True self._heartbeat_thread.start() else: |