logging: Make our own Formatter class.

This doesn't yet do much, but it gives us a suitable place to
add code to customize how log messages are displayed, beyond what
a format string passed to the default formatter can do.
This commit is contained in:
Greg Price
2017-09-27 14:40:38 -07:00
parent e0a5e6fade
commit 0163920577
3 changed files with 12 additions and 3 deletions

View File

@@ -204,8 +204,6 @@ def build_custom_checkers(by_lang):
'exclude_line': set([
('zerver/views/users.py',
"return json_error(_(\"Email '%(email)s' not allowed for realm '%(realm)s'\") %"),
('zproject/settings.py',
"'format': '%(asctime)s %(levelname)-8s %(message)s'"),
('static/templates/settings/bot-settings.handlebars',
"'https://hostname.example.com/bots/followup'"),
]),