# HG changeset patch # User Matthew Wild # Date 1521307753 0 # Node ID fafb4036771c3a7145297b5d622fa76d8936581e # Parent a15c891c6232c2dff0272f598b1a9e5b3e29d959 util.async: if debugging is enabled, use runner id in logs diff -r a15c891c6232 -r fafb4036771c spec/util_async_spec.lua --- a/spec/util_async_spec.lua Sat Mar 17 17:28:07 2018 +0000 +++ b/spec/util_async_spec.lua Sat Mar 17 17:29:13 2018 +0000 @@ -13,7 +13,7 @@ return async.runner(func, setmetatable({}, { __index = function (_, event) return function (runner, err) - print(name, "event", event, err) + print(name or runner.id, "event", event, err) print "--" table.insert(log, { event = event, err = err }); end;