Software /
code /
prosody-modules
Changeset
3278:958f0b8b502c
mod_pubsub_feeds: Log non-HTTP errors like certificate problems etc
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Aug 2018 13:59:32 +0200 |
parents | 3277:78b11fb291a2 |
children | 3279:e6b25054c110 |
files | mod_pubsub_feeds/mod_pubsub_feeds.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Sat Aug 25 13:59:09 2018 +0200 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Sat Aug 25 13:59:32 2018 +0200 @@ -160,6 +160,8 @@ end elseif code == 304 then item.last_update = time(); + elseif code == < 100 then + module:log("error", "Error fetching %q: %q[%d]", item.url, data, code); else module:log("debug", "Unhandled status code %d when fetching %q", code, item.url); end