Software /
code /
prosody
Diff
spec/util_async_spec.lua @ 8617:fafb4036771c
util.async: if debugging is enabled, use runner id in logs
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 17 Mar 2018 17:29:13 +0000 |
parent | 8616:a15c891c6232 |
child | 8618:680b1caa2dea |
line wrap: on
line diff
--- 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;