Commit 4f3c2d97 authored by Sergey Gernyak's avatar Sergey Gernyak

Some additional logging 💩

parent 6efe6eb8
......@@ -9,6 +9,7 @@ module BetfairApiNgRails
delegate :app_key, :username, to: :account
def initialize(account_name)
BetfairApiNgRails.log.write("==> Initializing new connection #{self}")
@account_name = account_name
end
......
......@@ -72,6 +72,7 @@ module BetfairApiNgRails
def prepare_form_data
return unless is_provider
BetfairApiNgRails.log.write("==> Setting request body #{body}")
request.set_form_data({
app_key: app_key,
session_token: session_key,
......
......@@ -58,6 +58,7 @@ module BetfairApiNgRails
end
def set_request_body(body)
BetfairApiNgRails.log.write("==> Setting request body #{body}")
request.body = body
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment