LogError and LogWarning will print out when Config.Debug = false

This commit is contained in:
Lorraxs 2024-03-20 04:25:47 +07:00
parent 05404537a1
commit 9578992566

View File

@ -157,12 +157,10 @@ function Main:RegisterEvents()
end end
function Main:LogError(msg, ...) function Main:LogError(msg, ...)
if not Config.Debug then return end
print(("[^1ERROR^0] " .. msg):format(...)) print(("[^1ERROR^0] " .. msg):format(...))
end end
function Main:LogWarning(msg, ...) function Main:LogWarning(msg, ...)
if not Config.Debug then return end
print(("[^3WARNING^0] " .. msg):format(...)) print(("[^3WARNING^0] " .. msg):format(...))
end end