New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to make oink skip lines with bad character encoding #7

Open
wants to merge 4 commits into
base: master
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

Viewing a subset of changes. View all

fix for malformed line skip logging, wasn't properly filtering on exc…

…eption message previously
  • Loading branch information...
Shane Gibbons
Shane Gibbons committed Jan 14, 2011
commit 291abd32fd4c52c3c0fa906d5d8b37b91eaf62b7
@@ -21,7 +21,7 @@ def print(output)
begin
next unless line =~ HODEL_LOG_FORMAT_REGEX
rescue => e
output.puts "\nSkipping malformed line" if @format == :verbose and e =~ /invalid byte sequence/
output.puts "\nSkipping malformed line" if @format == :verbose and e.message =~ /invalid byte sequence/
next
end
ProTip! Use n and p to navigate between commits in a pull request.