diff options
author | Kim Alvefur <zash@zash.se> | 2023-01-31 07:48:21 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-01-31 07:48:21 +0100 |
commit | d90a094949fccddad9c26ba29d13b47410d3fee7 (patch) | |
tree | 344fd1058b3b2112fd6a6dc8cba9e32329a39cd3 /core | |
parent | 89f652ff0b56d532eee45d265d276b47760a9b8e (diff) | |
download | prosody-d90a094949fccddad9c26ba29d13b47410d3fee7.tar.gz prosody-d90a094949fccddad9c26ba29d13b47410d3fee7.zip |
core.moduleapi: Fix passing variable to logging
Diffstat (limited to 'core')
-rw-r--r-- | core/moduleapi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index fd54500d..5f9ee3c7 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -580,7 +580,7 @@ local status_priorities = { error = 3, warn = 2, info = 1, core = 0 }; 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; |