Software /
code /
prosody-modules
Changeset
4504:0136c98f574c
mod_ogp: Log error responses
author | JC Brand <jc@opkode.com> |
---|---|
date | Mon, 08 Mar 2021 13:25:40 +0100 |
parents | 4503:80912726405d |
children | 4505:e11abf578df5 |
files | mod_ogp/mod_ogp.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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