From 89ca3187df83779c45b3f92098636dca74d12f20 Mon Sep 17 00:00:00 2001 From: shuki Date: Thu, 5 Mar 2026 18:09:17 +0200 Subject: [PATCH] Hide cron wrapper logs from logs listing Only show per-run gniza-*.log files in the logs page. Cron wrapper logs (cron-*.log) are redundant with the structured per-run logs and just accumulate noise. They remain accessible via direct URL. Co-Authored-By: Claude Opus 4.6 --- whm/gniza-whm/logs.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whm/gniza-whm/logs.cgi b/whm/gniza-whm/logs.cgi index 0fa0c54..d69cfb6 100755 --- a/whm/gniza-whm/logs.cgi +++ b/whm/gniza-whm/logs.cgi @@ -52,7 +52,7 @@ sub show_list { my @files; if (opendir my $dh, $log_dir) { while (my $entry = readdir $dh) { - next unless _valid_log_filename($entry); + next unless $entry =~ /^gniza-\d{8}-\d{6}\.log$/; my $path = "$log_dir/$entry"; next unless -f $path; my @stat = stat($path); @@ -61,7 +61,7 @@ sub show_list { name => $entry, size => $stat[7] // 0, mtime => $stat[9] // 0, - type => ($entry =~ /^cron-/) ? 'Cron' : _detect_log_type($path), + type => _detect_log_type($path), status => $status, }; }