add option for extra logging

This commit is contained in:
LazyBoot 2022-12-17 00:58:45 +01:00
parent bf0511af4d
commit b21561a912
No known key found for this signature in database
GPG Key ID: 0BD81D01FA2A433F

View File

@ -19,5 +19,12 @@ else
trigger.action.outText("DEBUG MODE OFF", 10)
HOGGIT = {}
HOGGIT.debug = false
HOGGIT.debug_text = function()end
if trigger.misc.getUserFlag(9999) == 2
HOGGIT.debug_text = function(text, time)
env.info("HOGGIT -- " .. text)
end
else
HOGGIT.debug_text = function()end
end
end