Sha256: 11a1f6453553ecab39ca4c1fc6c4a76c30b634494c007e79e041a519763452ce
Contents?: true
Size: 424 Bytes
Versions: 4
Compression:
Stored size: 424 Bytes
Contents
# Print errors that occured often amount = $arguments[:amount] || 10 puts puts "Errors" puts green("========================================================================") $summarizer.sort_errors_by(:count).reverse[0, amount.to_i].each do |a| puts "%s: [#{green("%d requests")}]" % [a[0] + 'Error', a[1][:count]] puts blue(' -> ' + (a[1][:exception_strings].invert[ a[1][:exception_strings].values.max ])[0..79]) end
Version data entries
4 entries across 4 versions & 2 rubygems