moduleapi: Log suppressed status priority and message when not overriding
authorMatthew Wild <mwild1@gmail.com>
Tue, 26 Mar 2019 17:22:56 +0000
changeset 9934 12a31296d63d
parent 9933 3b776c32b9be
child 9937 aac4c55721f9
moduleapi: Log suppressed status priority and message when not overriding
core/moduleapi.lua
--- 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();