aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-16 17:13:20 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-16 17:13:20 +0000
commitb62058e24a04be839087ae56d840c395c000eceb (patch)
tree071de81c105032d07a08d6abf3bf465e9e959f81 /util
parent99d071b9f8d7d0e12c80ebe9baed4368411d6103 (diff)
downloadprosody-b62058e24a04be839087ae56d840c395c000eceb.tar.gz
prosody-b62058e24a04be839087ae56d840c395c000eceb.zip
util.async: Log the non-error state as well when there is an error being processed
Diffstat (limited to 'util')
-rw-r--r--util/async.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/async.lua b/util/async.lua
index 13ab73af..25236b11 100644
--- a/util/async.lua
+++ b/util/async.lua
@@ -161,7 +161,7 @@ function runner_mt:run(input)
-- 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