From 328f446c6dc1cd35556eb9ebfa894321589233ee Mon Sep 17 00:00:00 2001 From: Linventif Date: Mon, 25 Sep 2023 11:30:37 +0200 Subject: [PATCH] debug debug.traceback() --- lua/gmod_integration/shared/sh_main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gmod_integration/shared/sh_main.lua b/lua/gmod_integration/shared/sh_main.lua index ab63faf..46173c5 100644 --- a/lua/gmod_integration/shared/sh_main.lua +++ b/lua/gmod_integration/shared/sh_main.lua @@ -12,5 +12,5 @@ end function gmInte.logError(msg, debug) if (debug && !gmInte.config.debug) then return end print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [ERROR] " .. msg) - print(debug.traceback()) + debug && print(debug.traceback()) end \ No newline at end of file