# HG changeset patch # User JC Brand # Date 1615206340 -3600 # Node ID 0136c98f574cf19491898595d407990369835d61 # Parent 80912726405d2d99e04444d99e86d31c6a68b76a mod_ogp: Log error responses diff -r 80912726405d -r 0136c98f574c mod_ogp/mod_ogp.lua --- a/mod_ogp/mod_ogp.lua Sun Mar 07 22:01:50 2021 +0100 +++ b/mod_ogp/mod_ogp.lua Mon Mar 08 13:25:40 2021 +0100 @@ -30,6 +30,7 @@ nil, function(response_body, response_code, _) if response_code ~= 200 then + module:log("debug", "Call to %s returned code %s and body %s", url, response_code, response_body) return end @@ -58,7 +59,7 @@ end if property and content then - module:log("info", property .. "\t" .. content) + module:log("debug", property .. "\t" .. content) fastening:tag( "meta", { @@ -75,7 +76,7 @@ if found_metadata then mod_muc.get_room_from_jid(room.jid):broadcast_message(fastening) end - module:log("info", tostring(fastening)) + module:log("debug", tostring(fastening)) end ) end