Skip to content

Commit

Permalink
refactor(all): rename module-level logger to LOGGER
Browse files Browse the repository at this point in the history
  • Loading branch information
a-vasilev-nt committed Sep 13, 2021
1 parent ecc4a10 commit c67cf2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ntc/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from .leaf import CfgLeaf

logger = logging.getLogger(__name__)
LOGGER = logging.getLogger(__name__)


class CfgNode(UserDict):
Expand Down Expand Up @@ -403,7 +403,7 @@ def _update_module(self, full_key: str, value) -> None:
lines.append(f"{full_key} = {value.create_eval_str(cls_name, args, kwargs)}\n")
else:
message = f"Config was modified with unsavable value: {value!r}"
logger.warning(message)
LOGGER.warning(message)
lines.append(f"# {message}")
self._safe_save = False
self._module.extend(lines)
Expand Down
2 changes: 1 addition & 1 deletion ntc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from .errors import ModuleError

logger = logging.getLogger(__name__)
LOGGER = logging.getLogger(__name__)


def import_module(module_path: Path) -> ModuleType:
Expand Down

0 comments on commit c67cf2e

Please sign in to comment.