Improve bot-analyzer progress feedback (50 → 5 file interval)
ISSUE: Users with < 50 log files see no progress indicator - Script appears hung/frozen during log parsing - User reported: stuck at 'Filtering logs from last 24 hours' - With 39 log files, progress would never show (needs 50) FIX: Reduce progress_interval from 50 to 5 - Now shows: 'Parsed 5 log files... (current: domain.com)' - Updates every 5 files instead of every 50 - Much better UX for typical servers (10-100 log files) TECHNICAL NOTE: Our QA bug fixes (integer comparisons) did NOT break the script. The script was working correctly - just appeared stuck due to infrequent progress updates. Syntax validated with bash -n. Impact: Users now see progress feedback much sooner
This commit is contained in:
@@ -320,7 +320,7 @@ parse_logs() {
|
||||
|
||||
# Parse all domain logs
|
||||
local file_count=0
|
||||
local progress_interval=50
|
||||
local progress_interval=5 # Show progress every 5 files instead of 50
|
||||
echo ""
|
||||
{
|
||||
find "$log_search_path" -type f -name "$log_search_name" ! -name "*-bytes_log" ! -name "*.offset" ! -name "*error_log" "${find_opts[@]}" 2>/dev/null | while read -r logfile; do
|
||||
|
||||
Reference in New Issue
Block a user