-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'amCap1712/sentry'
- Loading branch information
Showing
3 changed files
with
8 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ def init_debug_toolbar(self): | |
|
||
def init_loggers(self, | ||
file_config=None, | ||
email_config=None, | ||
sentry_config=None): | ||
"""This method attaches loggers to the Flask app. | ||
|
@@ -63,20 +62,6 @@ def init_loggers(self, | |
'backup_count': 100, # optional | ||
} | ||
email_config (dict): Dictionary with the following structure:: | ||
{ | ||
'mail_server': 'localhost', | ||
'mail_port': 25, | ||
'mail_from_host': 'example.org', | ||
'log_email_recipients': [ | ||
'[email protected]', | ||
'[email protected]', | ||
], | ||
'log_email_topic': 'Error occurred', | ||
'level': 'ERROR', # optional | ||
} | ||
sentry_config (dict): Dictionary with the following structure:: | ||
{ | ||
|
@@ -86,7 +71,5 @@ def init_loggers(self, | |
""" | ||
if file_config: | ||
loggers.add_file_handler(self, **file_config) | ||
if email_config: | ||
loggers.add_email_handler(self, **email_config) | ||
if sentry_config: | ||
loggers.add_sentry(self, **sentry_config) |
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