fix: don't try to log the print debug

This commit is contained in:
Linventif 2024-03-29 14:23:47 +01:00
parent 343f00798c
commit 336ae27b17
No known key found for this signature in database
GPG Key ID: FAC0CA60F9AEEC24

View File

@ -12,19 +12,16 @@ 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)
if (debug) then print(debug.traceback()) end
end
// Log Warning
function gmInte.logWarning(msg, debug)
if (debug && !gmInte.config.debug) then return end
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [WARNING] " .. msg)
if (debug) then print(debug.traceback()) end
end
// Log Hint
function gmInte.logHint(msg, debug)
if (debug && !gmInte.config.debug) then return end
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [HINT] " .. msg)
if (debug) then print(debug.traceback()) end
end