Changeset

3277:78b11fb291a2

mod_pubsub_feeds: Log a debug message for status codes not handled
author Kim Alvefur <zash@zash.se>
date Sat, 25 Aug 2018 13:59:09 +0200
parents 3276:cb4b26221cf6
children 3278:958f0b8b502c
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	Fri Aug 24 23:59:54 2018 +0200
+++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua	Sat Aug 25 13:59:09 2018 +0200
@@ -160,6 +160,8 @@
 			end
 		elseif code == 304 then
 			item.last_update = time();
+		else
+			module:log("debug", "Unhandled status code %d when fetching %q", code, item.url);
 		end
 	end);
 end