File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 99from idom .config import IDOM_CLIENT_BUILD_DIR
1010
1111
12- logger = logging .getLogger ()
12+ logger = logging .getLogger (__name__ )
1313
1414HERE = Path (__file__ ).parent
1515APP_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!
Original file line number Diff line number Diff line change @@ -43,3 +43,7 @@ def logging_config_defaults() -> Any:
4343
4444
4545dictConfig (logging_config_defaults ())
46+
47+
48+ if IDOM_DEBUG_MODE .current :
49+ root_logger .debug ("IDOM is in debug mode" )
You can’t perform that action at this time.
0 commit comments