diff --git a/test_monitor_tshark.sh b/test_monitor_tshark.sh index 7284b6e..7eef7ea 100755 --- a/test_monitor_tshark.sh +++ b/test_monitor_tshark.sh @@ -134,6 +134,7 @@ echo "Capturing packets for $DURATION seconds..." # Use a temporary pcap file to avoid field extraction errors during capture # Capture to file first, then parse it - this prevents tshark from exiting early TEMP_PCAP=$(mktemp /tmp/tshark_capture_XXXXXX.pcap) +echo "Capturing to temporary file: $TEMP_PCAP" set +e # Temporarily disable exit on error # Capture to pcap file - this won't error on missing fields