Skip to content

Commit cf461a9

Browse files
committed
fix log statements
1 parent af94f4e commit cf461a9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/idom/client/_private.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from idom.config import IDOM_CLIENT_BUILD_DIR
1010

1111

12-
logger = logging.getLogger()
12+
logger = logging.getLogger(__name__)
1313

1414
HERE = Path(__file__).parent
1515
APP_DIR = HERE / "app"
@@ -32,6 +32,8 @@ def _run_build_dir_init_only_once() -> None: # pragma: no cover
3232
shutil.rmtree(IDOM_CLIENT_BUILD_DIR.current)
3333
# replace it with the newer backup build (presumable from a fresh install)
3434
shutil.copytree(BACKUP_BUILD_DIR, IDOM_CLIENT_BUILD_DIR.current, symlinks=True)
35+
else:
36+
logger.debug("runtime build directory is up to date")
3537

3638

3739
_run_build_dir_init_only_once() # this is only ever called once at runtime!

src/idom/log.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ def logging_config_defaults() -> Any:
4343

4444

4545
dictConfig(logging_config_defaults())
46+
47+
48+
if IDOM_DEBUG_MODE.current:
49+
root_logger.debug("IDOM is in debug mode")

0 commit comments

Comments
 (0)