Log warning directly.

This commit is contained in:
Kyle Kelley 2014-12-02 14:14:18 -06:00
parent 858d153bff
commit a6d3d6a93e

View File

@ -15,7 +15,8 @@ class CSPReportHandler(IPythonHandler):
def post(self):
'''Log a content security policy violation report'''
csp_report = self.get_json_body()
self.log.warn(csp_report)
self.log.warn("Content security violation: %s",
self.request.body.decode('utf8', 'replace'))
default_handlers = [
(csp_report_uri, CSPReportHandler)