aboutsummaryrefslogtreecommitdiffstats
path: root/util/async.lua
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
commit63c7d4d8a39b9ec49346100d05f57c4e74cb79c3 (patch)
tree071de81c105032d07a08d6abf3bf465e9e959f81 /util/async.lua
parent09aa4a96987228559d554273358d4ac8b7fa5326 (diff)
downloadprosody-63c7d4d8a39b9ec49346100d05f57c4e74cb79c3.tar.gz
prosody-63c7d4d8a39b9ec49346100d05f57c4e74cb79c3.zip
util.async: Log the non-error state as well when there is an error being processed
Diffstat (limited to 'util/async.lua')
-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