Skip to content
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 stdout logging for websockets v2 #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.0.10

- Fixes an issue with STDOUT logging for ws2

1.0.9

- Fixes bug with API v2 transfer
Expand Down
2 changes: 1 addition & 1 deletion bitfinex-rb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'bitfinex-rb'
spec.version = '1.0.9'
spec.version = '1.0.10'
spec.authors = ['Bitfinex']
spec.email = ['[email protected]']
spec.summary = %q{Bitfinex API Wrapper}
Expand Down
8 changes: 6 additions & 2 deletions lib/ws/ws2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ class WSv2
# @param [boolean] params.checksum_audit - enables automatic OB checksum verification (requires manage_order_books)
###
def initialize (params = {})
@l = Logger.new(STDOUT)
@l.progname = 'ws2'
if params[:logger]
@l = params[:logger]
else
@l = Logger.new(STDOUT)
@l.progname = 'ws2'
end

@url = params[:url] || 'wss://api.bitfinex.com/ws/2'
@aff_code = params[:aff_code]
Expand Down