Skip to content
Browse files

Add some log code

  • Loading branch information...
1 parent 9ba5edf commit c50bd1a819866c81eb47f23e6033dc658d8ffca5 @Raidar committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 utils/useDebugs.lua
View
4 utils/useDebugs.lua
@@ -361,7 +361,7 @@ function unit.toarray (name, data, kind, filter) --> (table)
2. Save all after last '\n' to subarray u.
--]]
local write = function (...)
- --log({ ... }, tostring(kind.level or -1))
+ --logShow({ tostring(kind.level or -1), ... })
for i = 1, select("#", ...) do
local s = select(i, ...)
-- Match for first '\n':
@@ -396,6 +396,7 @@ function unit.toarray (name, data, kind, filter) --> (table)
return true
end -- write
+ --logShow("Start")
local res, s = serial.prettyize(name, data, kind, write)
-- Move last collected to t:
@@ -404,6 +405,7 @@ function unit.toarray (name, data, kind, filter) --> (table)
t[n] = tconcat(u)
end
t.n = n
+ --logShow("Stop")
--logShow(t, "toarray")

0 comments on commit c50bd1a

Please sign in to comment.
Something went wrong with that request. Please try again.