Skip to content

Commit b14f9c9

Browse files
author
Aliaksandr Trush
committed
add log messages into ReportPortalServiceAsync#terminate
1 parent 763659a commit b14f9c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reportportal_client/service_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,12 @@ def terminate(self, nowait=False):
148148
nowait: set to True to terminate immediately and skip processing
149149
messages still in the queue
150150
"""
151+
logger.debug("Acquiring lock for service termination")
151152
with self.lock:
152153
logger.debug("Terminating service")
153154

154155
if not self.listener:
155-
logger.debug("Service already stopped.")
156+
logger.warning("Service already stopped.")
156157
return
157158

158159
self.listener.stop(nowait)

0 commit comments

Comments
 (0)