diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-03-17 17:29:13 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-03-17 17:29:13 +0000 |
commit | fb4be1b7d5eeac679c0eb0a7bb718628c0e53e39 (patch) | |
tree | c33dc235d1244ffe22e4f95747482cf246fa586d /spec/util_async_spec.lua | |
parent | f0d4a5254e293caa9995dc7f28ac2c43a68b9d89 (diff) | |
download | prosody-fb4be1b7d5eeac679c0eb0a7bb718628c0e53e39.tar.gz prosody-fb4be1b7d5eeac679c0eb0a7bb718628c0e53e39.zip |
util.async: if debugging is enabled, use runner id in logs
Diffstat (limited to 'spec/util_async_spec.lua')
-rw-r--r-- | spec/util_async_spec.lua | 2 |
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; |