Mercurial > prosody-hg
comparison plugins/mod_mam/mod_mam.lua @ 8576:07ff7b8b702b
mod_mam: Log a debug message if archive expiry has been disabled
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 07 Mar 2018 14:59:00 +0100 |
| parents | 5040c8ce32dd |
| children | 75d5eee6fcdf |
comparison
equal
deleted
inserted
replaced
| 8575:5040c8ce32dd | 8576:07ff7b8b702b |
|---|---|
| 379 cleanup[user] = nil; | 379 cleanup[user] = nil; |
| 380 end | 380 end |
| 381 return math.random(cleanup_interval, cleanup_interval * 2); | 381 return math.random(cleanup_interval, cleanup_interval * 2); |
| 382 end); | 382 end); |
| 383 else | 383 else |
| 384 module:log("debug", "Archive expiry disabled"); | |
| 384 -- Don't ask the backend to count the potentially unbounded number of items, | 385 -- Don't ask the backend to count the potentially unbounded number of items, |
| 385 -- it'll get slow. | 386 -- it'll get slow. |
| 386 use_total = false; | 387 use_total = false; |
| 387 end | 388 end |
| 388 | 389 |
