util.async: if debugging is enabled, use runner id in logs

This commit is contained in:
Matthew Wild 2018-03-17 17:29:13 +00:00
parent f0d4a5254e
commit fb4be1b7d5

View file

@ -13,7 +13,7 @@ describe("util.async", function()
return async.runner(func, setmetatable({}, { return async.runner(func, setmetatable({}, {
__index = function (_, event) __index = function (_, event)
return function (runner, err) return function (runner, err)
print(name, "event", event, err) print(name or runner.id, "event", event, err)
print "--" print "--"
table.insert(log, { event = event, err = err }); table.insert(log, { event = event, err = err });
end; end;