# HG changeset patch # User Kim Alvefur # Date 1675147701 -3600 # Node ID b9468c8ac1d33d4eddb22aec167c14314ce922f7 # Parent 7f4f834fae797972760ff500acdbca910319cff2 core.moduleapi: Fix passing variable to logging diff -r 7f4f834fae79 -r b9468c8ac1d3 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;