Skip to content

Commit 9c694e4

Browse files
committed
Add logging to paths module
1 parent 1edbf5c commit 9c694e4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/paths.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import print_function, unicode_literals, absolute_import
55

66
import os
7+
from . import log
78

89
__paths = {}
910

@@ -40,6 +41,7 @@ def register(name, *path_elms, **kwargs):
4041
*path_elms[:-1]), path_elms[-1])
4142
else:
4243
__paths[name] = path_elms[0]
44+
log.i('Registering path %s as %s', name, __paths[name])
4345
if kwargs.get('allow_create', True) and not os.path.exists(__paths[name]):
4446
os.makedirs(__paths[name])
4547

0 commit comments

Comments
 (0)