Minor text changes to log message limitation

This commit is contained in:
Justin Mayer 2014-04-14 16:18:07 -04:00
commit 7e06912bca
5 changed files with 21 additions and 21 deletions

View file

@ -78,7 +78,7 @@ class LimitFilter(logging.Filter):
group_count = defaultdict(int)
def filter(self, record):
# don't limit levels over warnings
# don't limit log messages for anything above "warning"
if record.levelno > logging.WARN:
return record
# extract group
@ -105,7 +105,7 @@ class LimitFilter(logging.Filter):
class LimitLogger(logging.Logger):
"""
A logger which add LimitFilter automatically
A logger which adds LimitFilter automatically
"""
limit_filter = LimitFilter()