mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add logging functions to the library 'debug'
This commit is contained in:
parent
d5877a342f
commit
0df5d34e04
4 changed files with 45 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue