From 559c40a50aeed0e8412d19d034112265452fb7b5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 17 Mar 2018 17:29:13 +0000 Subject: util.async: if debugging is enabled, use runner id in logs --- spec/util_async_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') 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; -- cgit v1.2.3