Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a55c77

Browse files
authored
Merge pull request #6577 from ckan/set_logging_level_to_error_in_error_emails
Set logging level to error in error mail handler
2 parents 775ab84 + a2fd9fd commit 5a55c77

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ckan/config/middleware/flask_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ def filter(self, log_record):
551551
secure=secure
552552
)
553553

554+
mail_handler.setLevel(logging.ERROR)
554555
mail_handler.setFormatter(logging.Formatter('''
555556
Time: %(asctime)s
556557
URL: %(url)s

0 commit comments

Comments
 (0)