Mercurial > prosody-modules
comparison mod_pubsub_feeds/mod_pubsub_feeds.lua @ 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 | fe4194f10c75 |
| children | 958f0b8b502c |
comparison
equal
deleted
inserted
replaced
| 3276:cb4b26221cf6 | 3277:78b11fb291a2 |
|---|---|
| 158 if resp.headers then | 158 if resp.headers then |
| 159 item.etag = resp.headers.etag | 159 item.etag = resp.headers.etag |
| 160 end | 160 end |
| 161 elseif code == 304 then | 161 elseif code == 304 then |
| 162 item.last_update = time(); | 162 item.last_update = time(); |
| 163 else | |
| 164 module:log("debug", "Unhandled status code %d when fetching %q", code, item.url); | |
| 163 end | 165 end |
| 164 end); | 166 end); |
| 165 end | 167 end |
| 166 | 168 |
| 167 function refresh_feeds(now) | 169 function refresh_feeds(now) |
