Add warning when loosing reporting subprocess

This commit is contained in:
allegroai 2021-12-26 22:02:03 +02:00
parent b036bbce2f
commit f80a6813a5
2 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,8 @@ class BackgroundReportService(BackgroundMonitor, AsyncManagerMixin):
# start background thread
self._thread = None
self._start()
logging.getLogger('clearml.reporter').warning(
'Event reporting sub-process lost, switching to thread based reporting')
self._queue.put(ev)
self._queue_size += 1

View File

@ -99,6 +99,8 @@ class BackgroundLogService(BackgroundMonitor):
# start background thread
self._thread = None
self._start()
getLogger('clearml.log').warning(
'Event reporting sub-process lost, switching to thread based reporting')
self._queue.put(record)