Add thread name to the RabbitMQ heartbeat thread

With this information it is easier to debug the application.

Change-Id: Icafae894ede54d8e802aef556e4239408cc23bcd
This commit is contained in:
Gabriele 2019-05-24 22:02:19 +02:00
parent fe0ac3195e
commit da6caaef07

@ -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: