summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/metric_exporter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/metric_exporter.lua')
-rw-r--r--src/plugins/lua/metric_exporter.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/metric_exporter.lua b/src/plugins/lua/metric_exporter.lua
index 85cace8ea..9608fb83f 100644
--- a/src/plugins/lua/metric_exporter.lua
+++ b/src/plugins/lua/metric_exporter.lua
@@ -53,7 +53,7 @@ local valid_metrics = {
local function validate_metrics(settings_metrics)
if type(settings_metrics) ~= 'table' or #settings_metrics == 0 then
- logger.err('No metrics specified for collection')
+ logger.errx(rspamd_config, 'No metrics specified for collection')
return false
end
for _, v in ipairs(settings_metrics) do
@@ -144,7 +144,7 @@ local backends = {
local function configure_metric_exporter()
local opts = rspamd_config:get_all_opt('metric_exporter')
if not backends[opts['backend']] then
- logger.err('Backend is invalid or unspecified')
+ logger.errx(rspamd_config, 'Backend is invalid or unspecified')
return false
end
for k, v in pairs(opts) do