Filter out Cherrypy engine serving log message
This commit is contained in:
@@ -74,6 +74,14 @@ def blacklist_config(config):
|
||||
_BLACKLIST_WORDS.update(blacklist)
|
||||
|
||||
|
||||
class CherrypyEngineFilter(logging.Filter):
|
||||
"""
|
||||
Log filter for the Cherrypy Engine serving message
|
||||
"""
|
||||
def filter(self, record):
|
||||
return 'ENGINE Serving on' not in record.msg
|
||||
|
||||
|
||||
class NoThreadFilter(logging.Filter):
|
||||
"""
|
||||
Log filter for the current thread
|
||||
@@ -344,6 +352,9 @@ def initLogger(console=False, log_dir=False, verbose=False):
|
||||
handler.addFilter(EmailFilter())
|
||||
handler.addFilter(PlexTokenFilter())
|
||||
|
||||
for handler in cherrypy.log.error_log.handlers:
|
||||
handler.addFilter(CherrypyEngineFilter())
|
||||
|
||||
# Install exception hooks
|
||||
initHooks()
|
||||
|
||||
|
Reference in New Issue
Block a user