Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
Add hapic debug mode feature
Browse files Browse the repository at this point in the history
  • Loading branch information
inkhey committed Jun 1, 2018
1 parent 5e1ce60 commit ed3b568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tracim/__init__.py
Expand Up @@ -53,7 +53,8 @@ def main(global_config, **settings):
# set Hapic
context = PyramidContext(
configurator=configurator,
default_error_builder=ErrorSchema()
default_error_builder=ErrorSchema(),
debug=app_config.DEBUG,
)
hapic.set_context(context)
context.handle_exception(NotFound, 404)
Expand Down
1 change: 1 addition & 0 deletions tracim/config.py
Expand Up @@ -128,6 +128,7 @@ def __init__(self, settings):
'604800',
))

self.DEBUG = asbool(settings.get('debug', False))
# TODO - G.M - 27-03-2018 - [Email] Restore email config
###
# EMAIL related stuff (notification, reply)
Expand Down

0 comments on commit ed3b568

Please sign in to comment.