lib/request_log_analyzer/aggregator/summarizer.rb in wvanbergen-request-log-analyzer-1.0.1 vs lib/request_log_analyzer/aggregator/summarizer.rb in wvanbergen-request-log-analyzer-1.0.2

- old
+ new

@@ -67,11 +67,11 @@ @trackers.each { |tracker| tracker.finalize } end def report(output=STDOUT, report_width = 80, color = false) report_header(output, report_width, color) - if source.parsed_requests - source.skipped_requests > 0 + if source.parsed_requests > 0 @trackers.each { |tracker| tracker.report(output, report_width, color) } else output << "\n" output << "There were no requests analyzed.\n" end @@ -80,11 +80,11 @@ def report_header(output=STDOUT, report_width = 80, color = false) output << "Request summary\n" output << green("━" * report_width, color) + "\n" output << "Parsed lines: #{green(source.parsed_lines, color)}\n" - output << "Parsed requests: #{green(source.parsed_requests, color)}\n" if options[:combined_requests] - output << "Skipped requests: #{green(source.skipped_requests, color)}\n" if source.skipped_requests > 0 + output << "Parsed requests: #{green(source.parsed_requests, color)}\n" + output << "Skipped lines: #{green(source.skipped_lines, color)}\n" if source.skipped_lines > 0 if has_warnings? output << "Warnings: " + @warnings_encountered.map { |(key, value)| "#{key.inspect}: #{blue(value, color)}" }.join(', ') + "\n" end output << "\n" end