From 9e54eea08a26e980a57d93b07ea48777b8a3d491 Mon Sep 17 00:00:00 2001 From: BillLive Date: Tue, 26 Jan 2016 15:17:09 +1030 Subject: [PATCH] Include date time in debug messages --- Elementarist.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Elementarist.lua b/Elementarist.lua index 2411110..03d956c 100755 --- a/Elementarist.lua +++ b/Elementarist.lua @@ -172,9 +172,9 @@ Elementarist.events = {} function Elementarist:Debug(statictxt,msg) if (ElementaristDB.DebugMode) and (Elementarist.DebugChat) then if (msg) then - Elementarist.DebugChat:AddMessage( statictxt .. " : " .. msg) + Elementarist.DebugChat:AddMessage( date("%I:%M:%S: ") .. " " .. statictxt .. " : " .. msg) else - Elementarist.DebugChat:AddMessage( statictxt .. " : " .. "") + Elementarist.DebugChat:AddMessage( date("%I:%M:%S: ") .. statictxt .. " : " .. "") end end end -- 1.7.9.5