Skip to content
Myr

Merge pull request #1441 from andyxning/fix_pep8_with_logging

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix pep8 with logging

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents aaebe9f, 1b7fad3 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:flask/logging.py+3 added-3 removed
55 unmodified lines
56 """57 Logger = getLoggerClass()5859 class DebugLogger(Logger):60 def getEffectiveLevel(x):61 if x.level == 0 and app.debug:60 def getEffectiveLevel(self):61 if self.level == 0 and app.debug:62 return DEBUG63 return Logger.getEffectiveLevel(x)63 return Logger.getEffectiveLevel(self)6465 class DebugHandler(StreamHandler):66 def emit(self, record):67 if app.debug and _should_log_for(app, 'debug'):
23 unmodified lines