aboutsummaryrefslogtreecommitdiff
path: root/releng/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'releng/__init__.py')
-rw-r--r--releng/__init__.py32
1 files changed, 27 insertions, 5 deletions
diff --git a/releng/__init__.py b/releng/__init__.py
index 401b8e322..59d1709b9 100644
--- a/releng/__init__.py
+++ b/releng/__init__.py
@@ -2,11 +2,30 @@ from xonsh.main import setup
setup()
del setup
-from releng import environment
-from releng import create_release
-from releng import keys
-from releng import version
-from releng import cli
+import logging
+
+from . import environment
+from . import create_release
+from . import keys
+from . import version
+from . import cli
+from . import docker
+from . import docker_assemble
+from . import gitutils
+
+rootLogger = logging.getLogger()
+rootLogger.setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+log.setLevel(logging.DEBUG)
+
+fmt = logging.Formatter('{asctime} {levelname} {name}: {message}',
+ datefmt='%b %d %H:%M:%S',
+ style='{')
+
+if not any(isinstance(h, logging.StreamHandler) for h in rootLogger.handlers):
+ hand = logging.StreamHandler()
+ hand.setFormatter(fmt)
+ rootLogger.addHandler(hand)
def reload():
import importlib
@@ -15,3 +34,6 @@ def reload():
importlib.reload(keys)
importlib.reload(version)
importlib.reload(cli)
+ importlib.reload(docker)
+ importlib.reload(docker_assemble)
+ importlib.reload(gitutils)