We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4585adb commit c79a26fCopy full SHA for c79a26f
netbox-event-driven-automation-flask-app/app.py
@@ -90,7 +90,8 @@ def post(self):
90
except:
91
webhook_json_data = {}
92
93
- logger.info("{}".format(webhook_json_data))
+ sanitized_data = json.dumps(webhook_json_data).replace('\n', '').replace('\r', '')
94
+ logger.info("User-provided data: {}".format(sanitized_data))
95
96
if not webhook_json_data or "model" not in webhook_json_data or "event" not in webhook_json_data:
97
return {"result":"invalid input"}, 400
0 commit comments