summaryrefslogtreecommitdiff
path: root/turbo_hipster/cmd/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'turbo_hipster/cmd/server.py')
-rw-r--r--turbo_hipster/cmd/server.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/turbo_hipster/cmd/server.py b/turbo_hipster/cmd/server.py
index 9cbf4e3..6dc5e37 100644
--- a/turbo_hipster/cmd/server.py
+++ b/turbo_hipster/cmd/server.py
@@ -35,7 +35,13 @@ def main(args):
with open(args.config, 'r') as config_stream:
config = yaml.safe_load(config_stream)
+ if not config['debug_log']:
+ # NOTE(mikal): debug logging _must_ be enabled for the log writing
+ # in lib.utils.execute_to_log to work correctly.
+ raise Exception('Debug log not configured')
+
server = worker_server.Server(config)
+ server.setup_logging(config['debug_log'])
def term_handler(signum, frame):
server.stop()