aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-17 17:29:13 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-17 17:29:13 +0000
commit559c40a50aeed0e8412d19d034112265452fb7b5 (patch)
treec33dc235d1244ffe22e4f95747482cf246fa586d
parent2fbef935f9e7f7500376969c92655ae7a0897fe2 (diff)
downloadprosody-559c40a50aeed0e8412d19d034112265452fb7b5.tar.gz
prosody-559c40a50aeed0e8412d19d034112265452fb7b5.zip
util.async: if debugging is enabled, use runner id in logs
-rw-r--r--spec/util_async_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_async_spec.lua b/spec/util_async_spec.lua
index f7d11be0..c4e35454 100644
--- a/spec/util_async_spec.lua
+++ b/spec/util_async_spec.lua
@@ -13,7 +13,7 @@ describe("util.async", function()
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;