Diff

util/async.lua @ 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
parent 8603:dc5f3302a642
child 8609:9f6ab206d741
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