Mercurial > prosody-hg
view plugins/mod_debug_sql.lua @ 14070:d7f2ffc25273 13.0
mod_carbons: Fix some carbons decision-making bugs (fixes #1861)
This was introduced when refactoring into an event in commit 063ce658c181
(released in 0.12.0).
Known policies to be affected:
- Copying of outgoing MUC PMs (#1861)
- Copying of archived stanzas (if not copied by other rules)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 11 Feb 2026 11:38:55 +0000 |
| parents | 5edb0d01a94f |
| children |
line wrap: on
line source
-- Enables SQL query logging -- -- luacheck: ignore 213/uri module:set_global(); local engines = module:shared("/*/sql/connections"); for uri, engine in pairs(engines) do engine:debug(true); end setmetatable(engines, { __newindex = function (t, uri, engine) engine:debug(true); rawset(t, uri, engine); end }); function module.unload() setmetatable(engines, nil); for uri, engine in pairs(engines) do engine:debug(false); end end
