From f60046aad559126e6f2d0e784192b1d175a52efa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 30 Aug 2015 13:45:36 +0200 Subject: util.sql: Log when transactions begin --- util/sql.lua | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3