mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-01 00:00:35 -04:00
remove noise :open state messages from socks proxy plugin
This commit is contained in:
parent
38facaece7
commit
f271ec349b
@ -53,7 +53,7 @@ module HTTPX
|
||||
return unless @state == :connecting
|
||||
@parser = nil
|
||||
end
|
||||
log(level: 1, label: "SOCKS4: ") { "#{nextstate}: #{@write_buffer.to_s.inspect}" }
|
||||
log(level: 1, label: "SOCKS4: ") { "#{nextstate}: #{@write_buffer.to_s.inspect}" } unless nextstate == :open
|
||||
super
|
||||
end
|
||||
end
|
||||
|
@ -86,7 +86,7 @@ module HTTPX
|
||||
return unless @state == :negotiating
|
||||
@parser = nil
|
||||
end
|
||||
log(level: 1, label: "SOCKS5: ") { "#{nextstate}: #{@write_buffer.to_s.inspect}" }
|
||||
log(level: 1, label: "SOCKS5: ") { "#{nextstate}: #{@write_buffer.to_s.inspect}" } unless nextstate == :open
|
||||
super
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user