diff options
author | Kim Alvefur <zash@zash.se> | 2015-08-30 13:45:36 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-08-30 13:45:36 +0200 |
commit | 90f5cf4cc12a0a64a92f9985cd6ea24a4198c885 (patch) | |
tree | 1fc8b738cf13627e887a16cbe2d4710619de0b22 /util | |
parent | e92f6bc9c1a8911a7385356983a21b576e19b3e0 (diff) | |
download | prosody-90f5cf4cc12a0a64a92f9985cd6ea24a4198c885.tar.gz prosody-90f5cf4cc12a0a64a92f9985cd6ea24a4198c885.zip |
util.sql: Log when transactions begin
Diffstat (limited to 'util')
-rw-r--r-- | util/sql.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/sql.lua b/util/sql.lua index 70e103df..64f7c7fc 100644 --- a/util/sql.lua +++ b/util/sql.lua @@ -180,6 +180,7 @@ function engine:_transaction(func, ...) --assert(not self.__transaction, "Recursive transactions not allowed"); local args, n_args = {...}, select("#", ...); local function f() return func(unpack(args, 1, n_args)); end + log("debug", "SQL transaction begin [%s]", tostring(func)); self.__transaction = true; local success, a, b, c = xpcall(f, debug_traceback); self.__transaction = nil; |