The only messages we're really interested in are errors that
would come from the error logs. The acces logs only provide
messages like
- [18/Nov/2021:23:55:32] "POST /data HTTP/1.1" 200 - "" "Python-urllib/3.8"
which we don't want spammed to the log, especially since they are
logged at INFO level
Signed-off-by: Adam King <adking@redhat.com>
return not any([m for m in blocked if m in msg])
-logging.getLogger('cherrypy.access').addFilter(cherrypy_filter)
logging.getLogger('cherrypy.error').addFilter(cherrypy_filter)
+cherrypy.log.access_log.propagate = False
class CherryPyThread(threading.Thread):