# HG changeset patch # User Kim Alvefur # Date 1527985082 -7200 # Node ID 8c7b8b2c3237fa064a0203ecc0190b81987ba6cc # Parent 82689acd1294cc8f87f7abeedecb9145e88dad58 mod_slack_webhooks: Add a special webhook target for debugging diff -r 82689acd1294 -r 8c7b8b2c3237 mod_slack_webhooks/mod_slack_webhooks.lua --- a/mod_slack_webhooks/mod_slack_webhooks.lua Sun Jun 03 02:02:56 2018 +0200 +++ b/mod_slack_webhooks/mod_slack_webhooks.lua Sun Jun 03 02:18:02 2018 +0200 @@ -90,6 +90,10 @@ json_out = json.encode(json_out) local url = routing[from_room]; module:log("debug", "message from %s in %s to %s", from_nick, from_room, url); + if url == "DEBUG" then + module:log("debug", "json_out = %s", json_out); + return; + end local headers = { ["Content-Type"] = "application/json", };