mirror of
https://github.com/clearml/clearml
synced 2025-06-08 15:46:53 +00:00
Do not recreate logger after Task was closed/exited
This commit is contained in:
parent
3f6fb5379a
commit
7f00e45d6c
@ -1213,6 +1213,11 @@ class Task(_Task):
|
|||||||
|
|
||||||
:return: Logger object
|
:return: Logger object
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# do not recreate logger after task was closed/quit
|
||||||
|
if self._at_exit_called:
|
||||||
|
return None
|
||||||
|
|
||||||
if not self._logger:
|
if not self._logger:
|
||||||
# force update of base logger to this current task (this is the main logger task)
|
# force update of base logger to this current task (this is the main logger task)
|
||||||
self._setup_log(replace_existing=self.is_main_task())
|
self._setup_log(replace_existing=self.is_main_task())
|
||||||
|
Loading…
Reference in New Issue
Block a user