add logging functions to the library 'debug'

This commit is contained in:
MihailRis
2024-07-16 12:32:00 +03:00
parent d5877a342f
commit 0df5d34e04
4 changed files with 45 additions and 4 deletions
+2 -4
View File
@@ -93,8 +93,7 @@ return {
if callback then
local result, err = pcall(callback)
if err then
--// TODO: replace with error logging
print(err)
debug.error(err)
end
end
end
@@ -107,8 +106,7 @@ return {
if callback then
local result, err = pcall(callback)
if err then
--// TODO: replace with error logging
print(err)
debug.error(err)
end
end
end