]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Add colored output and TTY-aware progress to logstats/mapstats
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 11 Feb 2026 09:25:31 +0000 (09:25 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 11 Feb 2026 09:25:31 +0000 (09:25 +0000)
commit3de0f0871ab8c09cc47740d9fa24d9844dcd7e81
tree1dde4a3cade95e2c5fa3da1621b8a77a4f1a1fdc
parentc3959c79893a1aa5809457c4992edc9cd13146ce
[Minor] Add colored output and TTY-aware progress to logstats/mapstats

Gate spinner and ANSI escape codes behind isatty() so piped output is
clean. Add ansicolors to logstats (Ham/Spam/Junk labels, symbol names,
actions, warnings, summary) and mapstats (map status, match counts,
unmatched warnings).
lualib/lua_log_utils.lua
lualib/rspamadm/logstats.lua
lualib/rspamadm/mapstats.lua