mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 21:51:14 -07:00
Filter out Cherrypy engine serving log message
This commit is contained in:
parent
1fd4ec3ca3
commit
dd45b47032
1 changed files with 11 additions and 0 deletions
|
@ -74,6 +74,14 @@ def blacklist_config(config):
|
||||||
_BLACKLIST_WORDS.update(blacklist)
|
_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):
|
class NoThreadFilter(logging.Filter):
|
||||||
"""
|
"""
|
||||||
Log filter for the current thread
|
Log filter for the current thread
|
||||||
|
@ -344,6 +352,9 @@ def initLogger(console=False, log_dir=False, verbose=False):
|
||||||
handler.addFilter(EmailFilter())
|
handler.addFilter(EmailFilter())
|
||||||
handler.addFilter(PlexTokenFilter())
|
handler.addFilter(PlexTokenFilter())
|
||||||
|
|
||||||
|
for handler in cherrypy.log.error_log.handlers:
|
||||||
|
handler.addFilter(CherrypyEngineFilter())
|
||||||
|
|
||||||
# Install exception hooks
|
# Install exception hooks
|
||||||
initHooks()
|
initHooks()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue