Skip to content

Commit

Permalink
Fix debug setting
Browse files Browse the repository at this point in the history
  • Loading branch information
f1nality committed Dec 26, 2018
1 parent b197cc2 commit d2c0d1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jet_bridge/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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():
Expand Down

0 comments on commit d2c0d1c

Please sign in to comment.