From 7826ec0a13251d06c22bd96e83fff4aa854e0a4d Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 12 Apr 2014 20:09:47 +0100 Subject: [PATCH] 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. --- lovebird.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lovebird.lua b/lovebird.lua index 2ced9ed..d22996c 100644 --- a/lovebird.lua +++ b/lovebird.lua @@ -323,7 +323,9 @@ local map = function(t, fn) end 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 local unescape = function(str)