mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +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({}, {
|
||||
__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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue