mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
fix: don't try to log the print debug
This commit is contained in:
parent
343f00798c
commit
336ae27b17
|
@ -12,19 +12,16 @@ end
|
||||||
function gmInte.logError(msg, debug)
|
function gmInte.logError(msg, debug)
|
||||||
if (debug && !gmInte.config.debug) then return end
|
if (debug && !gmInte.config.debug) then return end
|
||||||
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [ERROR] " .. msg)
|
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [ERROR] " .. msg)
|
||||||
if (debug) then print(debug.traceback()) end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
// Log Warning
|
// Log Warning
|
||||||
function gmInte.logWarning(msg, debug)
|
function gmInte.logWarning(msg, debug)
|
||||||
if (debug && !gmInte.config.debug) then return end
|
if (debug && !gmInte.config.debug) then return end
|
||||||
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [WARNING] " .. msg)
|
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [WARNING] " .. msg)
|
||||||
if (debug) then print(debug.traceback()) end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
// Log Hint
|
// Log Hint
|
||||||
function gmInte.logHint(msg, debug)
|
function gmInte.logHint(msg, debug)
|
||||||
if (debug && !gmInte.config.debug) then return end
|
if (debug && !gmInte.config.debug) then return end
|
||||||
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [HINT] " .. msg)
|
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [HINT] " .. msg)
|
||||||
if (debug) then print(debug.traceback()) end
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user