Changeset

8604:1c8c7fd259c8

util.async: Log the non-error state as well when there is an error being processed
author Matthew Wild <mwild1@gmail.com>
date Fri, 16 Mar 2018 17:13:20 +0000
parents 8603:dc5f3302a642
children 8605:3a1efc0532cb
files util/async.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/async.lua	Fri Mar 16 17:12:36 2018 +0000
+++ b/util/async.lua	Fri Mar 16 17:13:20 2018 +0000
@@ -161,7 +161,7 @@
 	-- Runner processed all items it can, so save current runner state
 	self.state = state;
 	if err or state ~= self.notified_state then
-		self:log("debug", "changed state from %s to %s", self.notified_state, err and "error" or state);
+		self:log("debug", "changed state from %s to %s", self.notified_state, err and ("error ("..state..")") or state);
 		if err then
 			state = "error"
 		else