Fix backtrace filtering for net-ssh

Improve our filter pattern so it works for this kind of error:

SocketError: getaddrinfo: hostname nor servname provided, or not known
  /usr/local/lib/ruby/2.2/timeout.rb:74:in `timeout'
  /usr/local/lib/ruby/2.2/timeout.rb:125:in `timeout'
  /home/tj/.gem/ruby/22/gems/net-ssh-2.9.2/lib/net/ssh.rb:207:in `new'
  /home/tj/.gem/ruby/22/gems/net-ssh-2.9.2/lib/net/ssh.rb:207:in `start'
This commit is contained in:
Thibault Jouan
2015-04-03 21:33:29 +00:00
parent e361b6d174
commit dc561de047
3 changed files with 15 additions and 8 deletions

View File

@@ -3,8 +3,8 @@ module Producer
class ErrorFormatter
FILTERS = [
/\/producer-\w+\/(?:bin|lib)\//,
/\/net\/ssh\//,
/\/net\/sftp\//
/\/net-ssh/,
/\/net-sftp/
].freeze
def initialize(debug: false, force_cause: [])