Software /
code /
prosody
Diff
core/moduleapi.lua @ 9930:12a31296d63d
moduleapi: Log suppressed status priority and message when not overriding
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 26 Mar 2019 17:22:56 +0000 |
parent | 9929:3b776c32b9be |
child | 10213:ee62754b0233 |
line wrap: on
line diff
--- a/core/moduleapi.lua Tue Mar 26 17:22:25 2019 +0000 +++ b/core/moduleapi.lua Tue Mar 26 17:22:56 2019 +0000 @@ -527,7 +527,7 @@ -- 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();