From 20f34540fcf57d53367bfbc590148c1b5ad018d5 Mon Sep 17 00:00:00 2001 From: Carsten Rosenberg Date: Sun, 13 Jan 2019 13:21:43 +0100 Subject: [Fix] lua_scanner - oletools typos, logging --- lualib/lua_scanners/oletools.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lualib/lua_scanners') diff --git a/lualib/lua_scanners/oletools.lua b/lualib/lua_scanners/oletools.lua index db2d57904..97e0172ca 100644 --- a/lualib/lua_scanners/oletools.lua +++ b/lualib/lua_scanners/oletools.lua @@ -16,8 +16,8 @@ limitations under the License. ]]-- --[[[ --- @module dcc --- This module contains dcc access functions +-- @module oletools +-- This module contains oletools access functions --]] local lua_util = require "lua_util" @@ -83,7 +83,6 @@ local function oletools_check(task, content, digest, rule) if upstream then upstream:ok() end data = tostring(data) - lua_util.debugm(rule.module_name, task, 'data: %s', tostring(data)) local ucl_parser = ucl.parser() local ok, ucl_err = ucl_parser:parse_string(tostring(data)) @@ -119,10 +118,10 @@ local function oletools_check(task, content, digest, rule) elseif result[3]['return_code'] == 9 then rspamd_logger.warnx(task, '%s: File is encrypted.', rule.log_prefix) elseif result[3]['return_code'] > 6 then - rspamd_logger.errx(task, '%s: Oletools Error Returned: %s', + rspamd_logger.errx(task, '%s: Error Returned: %s', rule.log_prefix, oletools_rc[result[3]['return_code']]) elseif result[3]['return_code'] > 1 then - rspamd_logger.errx(task, '%s: Oletools Error Returned: %s', + rspamd_logger.errx(task, '%s: Error Returned: %s', rule.log_prefix, oletools_rc[result[3]['return_code']]) oletools_requery() elseif result[2]['analysis'] == 'null' and #result[2]['macros'] == 0 then -- cgit v1.2.3