mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
util.async: if debugging is enabled, use runner id in logs
This commit is contained in:
parent
f0d4a5254e
commit
fb4be1b7d5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue