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 9
9
from idom .config import IDOM_CLIENT_BUILD_DIR
10
10
11
11
12
- logger = logging .getLogger ()
12
+ logger = logging .getLogger (__name__ )
13
13
14
14
HERE = Path (__file__ ).parent
15
15
APP_DIR = HERE / "app"
@@ -32,6 +32,8 @@ def _run_build_dir_init_only_once() -> None: # pragma: no cover
32
32
shutil .rmtree (IDOM_CLIENT_BUILD_DIR .current )
33
33
# replace it with the newer backup build (presumable from a fresh install)
34
34
shutil .copytree (BACKUP_BUILD_DIR , IDOM_CLIENT_BUILD_DIR .current , symlinks = True )
35
+ else :
36
+ logger .debug ("runtime build directory is up to date" )
35
37
36
38
37
39
_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:
43
43
44
44
45
45
dictConfig (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