mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Log warning directly.
This commit is contained in:
parent
858d153bff
commit
a6d3d6a93e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user