Skip to content

Commit

Permalink
small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Sadkowski committed Jan 11, 2024
1 parent db2d036 commit ab28e41
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/neptune/cli/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _register_offline_container(self, project: Project, container_type: Containe
logger.warning(
"Exception occurred while trying to create a run" " on the Neptune server. Please try again later",
)
logging.exception(e)
logger.exception(e)
return None

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion src/neptune/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_metadata_container(
logger.warning("Can't fetch %s %s. Skipping.", public_container_type, container_id)
except NeptuneException as e:
logger.warning("Exception while fetching %s %s. Skipping.", public_container_type, container_id)
logging.exception(e)
logger.exception(e)

return None

Expand Down
2 changes: 1 addition & 1 deletion src/neptune/internal/backends/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
from neptune.internal.utils import replace_patch_version
from neptune.internal.utils.logger import get_logger

_logger = get_logger()
logger = get_logger()

if TYPE_CHECKING:
from neptune.internal.backends.neptune_backend import NeptuneBackend
Expand Down
1 change: 0 additions & 1 deletion tests/unit/neptune/new/test_logging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from contextlib import contextmanager
from typing import Optional

import pytest

Expand Down

0 comments on commit ab28e41

Please sign in to comment.