Mercurial > prosody-hg
comparison plugins/mod_http_file_share.lua @ 11343:f125ac529c22
mod_http_file_share: Clarify log message
No expired ... what? Could be inferred from the module logging it, but
better to be explicit.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 30 Jan 2021 17:35:13 +0100 |
| parents | b05331cff47a |
| children | 0fec04b64a49 |
comparison
equal
deleted
inserted
replaced
| 11342:44f983174e6a | 11343:f125ac529c22 |
|---|---|
| 315 | 315 |
| 316 local reaper_task = async.runner(function(boundary_time) | 316 local reaper_task = async.runner(function(boundary_time) |
| 317 local iter, total = assert(uploads:find(nil, {["end"] = boundary_time; total = true})); | 317 local iter, total = assert(uploads:find(nil, {["end"] = boundary_time; total = true})); |
| 318 | 318 |
| 319 if total == 0 then | 319 if total == 0 then |
| 320 module:log("info", "No expired to prune"); | 320 module:log("info", "No expired uploaded files to prune"); |
| 321 return; | 321 return; |
| 322 end | 322 end |
| 323 | 323 |
| 324 module:log("info", "Pruning expired files uploaded earlier than %s", dt.datetime(boundary_time)); | 324 module:log("info", "Pruning expired files uploaded earlier than %s", dt.datetime(boundary_time)); |
| 325 | 325 |
