Software /
code /
prosody
Diff
core/moduleapi.lua @ 12874:b9468c8ac1d3
core.moduleapi: Fix passing variable to logging
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 31 Jan 2023 07:48:21 +0100 |
parent | 12690:546c7e0f3f31 |
child | 12921:d238633a9d67 |
line wrap: on
line diff
--- 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;