Mercurial > prosody-hg
view plugins/mod_debug_sql.lua @ 14209:c4aa9b2b4787 13.0
net.unbound: Simplify by removing cancel()
Not aware that it is used anywhere. Removes potential "leak" by
forgetting to remove the entry from the now deleted table.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 30 May 2026 19:21:08 +0200 |
| 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
