Commit 0e216957 authored by Sergey Gernyak's avatar Sergey Gernyak

Fixes in logging

parent e9b19383
...@@ -44,7 +44,7 @@ module BetfairApiNgRails ...@@ -44,7 +44,7 @@ module BetfairApiNgRails
def account def account
acc = BetfairApiNgRails.account_manager.get account_name acc = BetfairApiNgRails.account_manager.get account_name
throw BetfairApiNgRails::NoAccountProvided unless acc throw BetfairApiNgRails::NoAccountProvided unless acc
BetfairApiNgRails.log.write("==> Using account #{account_name}") BetfairApiNgRails.log.write("==> Using account #{acc.username}")
acc acc
end end
end end
...@@ -7,6 +7,7 @@ module BetfairApiNgRails ...@@ -7,6 +7,7 @@ module BetfairApiNgRails
def initialize(name) def initialize(name)
@name = name @name = name
BetfairApiNgRails.log.write("==> Creating request method for #{name}")
end end
def allowed? def allowed?
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