From ff2468cc9fe4d4e9866c43847f0709c18bab6f4f Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Fri, 14 Jun 2024 15:15:11 -0700 Subject: [PATCH] 15156 remove bogus code --- netbox/extras/webhooks.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/netbox/extras/webhooks.py b/netbox/extras/webhooks.py index 64208cc67..3d9b911e8 100644 --- a/netbox/extras/webhooks.py +++ b/netbox/extras/webhooks.py @@ -80,11 +80,6 @@ def send_webhook(event_rule, model_name, event, data, timestamp, username, reque logger.error(f"Error forming HTTP request: {e}") raise e - print('--- data ---') - print(json.dumps(data, indent=4)) - print('--- snapshots ---') - print(json.dumps(snapshots, indent=4)) - print("") # If a secret key is defined, sign the request with a hash of the key and its content if webhook.secret != '': prepared_request.headers['X-Hook-Signature'] = generate_signature(prepared_request.body, webhook.secret)