From d3e620f53a3553bc73952e928dbc5bf4caf5a2cd 2014-12-02 21:12:14 From: Kyle Kelley Date: 2014-12-02 21:12:14 Subject: [PATCH] Log warning directly. --- diff --git a/IPython/html/services/security/handlers.py b/IPython/html/services/security/handlers.py index 3d04861..18f7874 100644 --- a/IPython/html/services/security/handlers.py +++ b/IPython/html/services/security/handlers.py @@ -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)