LogError and LogWarning will print out when Config.Debug = false
This commit is contained in:
parent
05404537a1
commit
9578992566
2
main.lua
2
main.lua
|
@ -157,12 +157,10 @@ function Main:RegisterEvents()
|
|||
end
|
||||
|
||||
function Main:LogError(msg, ...)
|
||||
if not Config.Debug then return end
|
||||
print(("[^1ERROR^0] " .. msg):format(...))
|
||||
end
|
||||
|
||||
function Main:LogWarning(msg, ...)
|
||||
if not Config.Debug then return end
|
||||
print(("[^3WARNING^0] " .. msg):format(...))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user