From: Alexander Moisseev Date: Sun, 15 Mar 2026 12:52:01 +0000 (+0300) Subject: [Minor] Read from STDIN when no log file is specified X-Git-Tag: 4.0.0~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbf59d5fea003d0fc4c8ca55a11baf372f3f4ded;p=thirdparty%2Frspamd.git [Minor] Read from STDIN when no log file is specified --- diff --git a/lualib/lua_log_utils.lua b/lualib/lua_log_utils.lua index 319031c56a..638e28f479 100644 --- a/lualib/lua_log_utils.lua +++ b/lualib/lua_log_utils.lua @@ -307,7 +307,7 @@ function exports.process_logs(log_file, start_time, end_time, callback, opts) end_time = exports.normalized_time(end_time or '') if end_time == '' then end_time = nil end - if log_file == '-' or log_file == '' then + if not log_file or log_file == '-' or log_file == '' then exports.iterate_log(io.stdin, start_time, end_time, callback, opts) else local err, st = rspamd_util.stat(log_file)