aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2019-03-26 17:22:56 +0000
committerMatthew Wild <mwild1@gmail.com>2019-03-26 17:22:56 +0000
commit36ad587977a55c0042e6aae283b10acbb50a87df (patch)
treed11223309e9d84e4ffb7f9d4ae9ae53183087477
parent3616d69edbd95a27b6edc042fb4fc512b584b71b (diff)
downloadprosody-36ad587977a55c0042e6aae283b10acbb50a87df.tar.gz
prosody-36ad587977a55c0042e6aae283b10acbb50a87df.zip
moduleapi: Log suppressed status priority and message when not overriding
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index e9e4c6d3..b81bbeb2 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -527,7 +527,7 @@ function api:set_status(status_type, status_message, override)
-- By default an 'error' status can only be overwritten by another 'error' status
if (current_priority >= status_priorities.error and priority < current_priority and override ~= true)
or (override == false and current_priority > priority) then
- self:log("debug", "Ignoring status");
+ self:log("debug", "moduleapi: ignoring status [prio %d override %s]: %s", priority, override, status_message);
return;
end
self.status_type, self.status_message, self.status_time = status_type, status_message, time_now();