From d2c0d1c5597dc5f2bdaca0ac5163ffc619918823 Mon Sep 17 00:00:00 2001 From: Denis K Date: Wed, 26 Dec 2018 13:22:35 +0300 Subject: [PATCH] Fix debug setting --- jet_bridge/__main__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jet_bridge/__main__.py b/jet_bridge/__main__.py index d9e96f65..7663a5ff 100644 --- a/jet_bridge/__main__.py +++ b/jet_bridge/__main__.py @@ -30,7 +30,7 @@ def make_app(): (r'/api/model_descriptions/', ModelDescriptionsHandler), (r'/api/sql/', SqlHandler), (r'/api/messages/', MessageHandler), - ] + router.urls, debug=True, default_handler_class=NotFoundHandler) + ] + router.urls, debug=settings.DEBUG, default_handler_class=NotFoundHandler) def main(): @@ -42,6 +42,10 @@ def main(): print(datetime.now().strftime('%B %d, %Y - %H:%M:%S %Z')) print('Jet Bridge version {}'.format(VERSION)) print('Starting server at {}'.format(url)) + + if settings.DEBUG: + print('Server is running in DEBUG mode') + print('Quit the server with CONTROL-C') if not is_token_activated():