diff --git a/pytorch_lightning/logging/__init__.py b/pytorch_lightning/logging/__init__.py index 7a265b4c84..73960a488a 100644 --- a/pytorch_lightning/logging/__init__.py +++ b/pytorch_lightning/logging/__init__.py @@ -10,9 +10,9 @@ try: except ModuleNotFoundError: pass try: - from .comet_logger import CometLogger - # needed to prevent ImportError and duplicated logs. environ["COMET_DISABLE_AUTO_LOGGING"] = "1" + + from .comet_logger import CometLogger except ModuleNotFoundError: - pass + del environ["COMET_DISABLE_AUTO_LOGGING"]