Comparison

core/moduleapi.lua @ 9929:3b776c32b9be

moduleapi: Remove overly-verbose debug logging on module status change
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 Mar 2019 17:22:25 +0000
parent 9866:09cc8c856e5e
child 9930:12a31296d63d
comparison
equal deleted inserted replaced
9928:d92ab8c8006a 9929:3b776c32b9be
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", "Ignoring status");
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:log("debug", "New status: %s", status_type);
535 self:fire_event("module-status/updated", { name = self.name }); 534 self:fire_event("module-status/updated", { name = self.name });
536 end 535 end
537 536
538 function api:log_status(level, msg, ...) 537 function api:log_status(level, msg, ...)
539 self:set_status(level, format(msg, ...)); 538 self:set_status(level, format(msg, ...));