core.moduleapi: Fix passing variable to logging
authorKim Alvefur <zash@zash.se>
Tue, 31 Jan 2023 07:48:21 +0100
changeset 12878 b9468c8ac1d3
parent 12877 7f4f834fae79
child 12879 a28f77018476
core.moduleapi: Fix passing variable to logging
core/moduleapi.lua
--- a/core/moduleapi.lua	Mon Jan 30 00:40:47 2023 +0100
+++ b/core/moduleapi.lua	Tue Jan 31 07:48:21 2023 +0100
@@ -580,7 +580,7 @@
 function api:set_status(status_type, status_message, override)
 	local priority = status_priorities[status_type];
 	if not priority then
-		self:log("error", "set_status: Invalid status type '%s', assuming 'info'");
+		self:log("error", "set_status: Invalid status type '%s', assuming 'info'", status_type);
 		status_type, priority = "info", status_priorities.info;
 	end
 	local current_priority = status_priorities[self.status_type] or 0;