Project

General

Profile

Actions

Optimization #2743

closed

Download Status Outputs Too Long An Unbroken String

Added by Kenneth Kolano about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

When output is captured to a log file, download status is output on a continuous unbroken string. For example:

2018-12-14 00:23:47,928 - <INFO> - Fetching https://rules.emergingthreats.net/blockrules/emerging-botcc.suricata.rules.
   6% - 8192/125648                     13% - 16384/125648                    19% - 24576/125648                    26% - 32768/125648                    32% - 40960/125648                    39% - 49152/125648                    45% - 57344/125648                    52% - 65536/125648                    58% - 73728/125648                    65% - 81920/125648                    71% - 90112/125648                    78% - 98304/125648                    84% - 106496/125648                   91% - 114688/125648                   97% - 122880/125648                  100% - 125648/125648                 

This isn't too bad for smaller downloads, but larger or slow downloads produce lines so long they result in extended hic-ups in viewing tools; typically not expecting lines with almost a million characters.

I presume using the "-q" switch can account for the problematic output, but also omits details I'd like to capture.

An option to omit download status info, or an alternate format that would break it up over multiple lines would be nice.

Actions #1

Updated by Jason Ish about 4 years ago

  • Status changed from New to Closed
  • Target version set to 1.0.1

Fixed. https://github.com/OISF/suricata-update/pull/75.

If the output is not a tty, don't display the progress.

Actions

Also available in: Atom PDF