Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
9929:3b776c32b9be | 9930:12a31296d63d |
---|---|
525 end | 525 end |
526 local current_priority = status_priorities[self.status_type] or 0; | 526 local current_priority = status_priorities[self.status_type] or 0; |
527 -- By default an 'error' status can only be overwritten by another 'error' status | 527 -- By default an 'error' status can only be overwritten by another 'error' status |
528 if (current_priority >= status_priorities.error and priority < current_priority and override ~= true) | 528 if (current_priority >= status_priorities.error and priority < current_priority and override ~= true) |
529 or (override == false and current_priority > priority) then | 529 or (override == false and current_priority > priority) then |
530 self:log("debug", "Ignoring status"); | 530 self:log("debug", "moduleapi: ignoring status [prio %d override %s]: %s", priority, override, status_message); |
531 return; | 531 return; |
532 end | 532 end |
533 self.status_type, self.status_message, self.status_time = status_type, status_message, time_now(); | 533 self.status_type, self.status_message, self.status_time = status_type, status_message, time_now(); |
534 self:fire_event("module-status/updated", { name = self.name }); | 534 self:fire_event("module-status/updated", { name = self.name }); |
535 end | 535 end |