Skip to content

Commit

Permalink
Merge f79cf63 into 84ef7bf
Browse files Browse the repository at this point in the history
  • Loading branch information
pellaea committed Mar 6, 2024
2 parents 84ef7bf + f79cf63 commit 064151c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions script/extract_log
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def print_match(bundle, strings, found)
strings.each do |string|
if bundle.join.include?(string)
found[string] = true
puts bundle.join
puts(bundle.map { |line| line.sub(/^[A-Z], \[[^\[\]]*\] /, "") }.join)
end
end
end
Expand All @@ -54,9 +54,9 @@ File.open(file).readlines.each do |line|
bundles[pid] = []
end
bundles[pid] ||= []
bundles[pid] << line.sub(/^[A-Z], \[[^\[\]]*\] /, "")
bundles[pid] << line
end
bundles.each do |pid, bundle|
bundles.each_value do |bundle|
print_match(bundle, strings, found)
end

Expand Down
2 changes: 1 addition & 1 deletion script/parse_log
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ new_errors=$app_root/log/errors.new

grep -A1 '^E, .* ERROR \|ENOMEM' $rails_log |
grep -v '^--' |
grep -v '^E, ' |
grep -v '^[EW], ' |
grep -v 'Using a password on the command line' |
grep -v 'Can.t figure out how to sort' |
grep -v 'SMTP To address may not contain CR or LF line breaks' |
Expand Down

0 comments on commit 064151c

Please sign in to comment.