Commits

Daniel Poelzleithner  committed 5380305

allow multiple arguments to trace.debug

you can now write trace.debug("bla", 2, ...)

  • Participants
  • Parent commits 81dfcfd

Comments (0)

Files changed (1)

File framework/env/trace/debug.lua

 --[[--
-trace.debug(
-  message     -- message to be inserted into the trace log
-)
+trace.debug(...)
+  arg     -- messages to be inserted into the trace log
+
 
 This function can be used to include debug output in the trace log.
 
 --]]--
 
-function trace.debug(message)
-  trace._new_entry{ type = "debug", message = tostring(message) }
+function trace.debug(...)
+  for i,message in ipairs(arg) do
+    trace._new_entry{ type = "debug", message = tostring(message) }
+  end
 end