Changed trace() to always output to lovebird's console

Regardless of what lovebird.wrapprint is set to, trace() will now always
output to lovebirds console.
This commit is contained in:
rxi
2014-04-12 20:09:47 +01:00
parent 339c0b3852
commit 7826ec0a13

View File

@@ -323,7 +323,9 @@ local map = function(t, fn)
end end
local trace = function(...) local trace = function(...)
print("[lovebird] " .. table.concat(map({...}, tostring), " ")) local str = "[lovebird] " .. table.concat(map({...}, tostring), " ")
print(str)
if not lovebird.wrapprint then lovebird.print(str) end
end end
local unescape = function(str) local unescape = function(str)