forked from aws/chalice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix log level out of sync with debug mode
Debug mode can be set with `app.debug = True` which does not update the logger level from ERROR to DEBUG. This is has been replaced with a setter that reconfigures the log level after debug is reset. The initialization method on the Chalice class had some logic that checked what the debug value was and configured the logger to match; however, debug was hardcoded to be False so this never did anything useful. A debug parameter has been added to the the __init__ method to make this more useful, it defaults to False to be the same as the hardcoded value. fixes aws#386
- Loading branch information
1 parent
69f18d7
commit 71f153a
Showing
2 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters