Skip to content

Commit

Permalink
fix log issue
Browse files Browse the repository at this point in the history
  • Loading branch information
foolcage committed Aug 2, 2018
1 parent d05eeb4 commit 03af3aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fooltrader/datasource/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def to_tick(item):
def eos_ram_to_kafka():
ram_trade = db.ram_trade

logger.info("collection:{}", ram_trade)
logger.info("collection:{}".format(ram_trade))

one_record = ram_trade.find_one()

logger.info("one record:{}", one_record)
logger.info("one record:{}".format(one_record))

security_id = 'cryptocurrency_contact_RAM-EOS'

Expand All @@ -77,7 +77,7 @@ def eos_ram_to_kafka():
else:
condition = {"block_time": {"$gte": start_date, "$lt": end_date}}

logger.info("start_date:{},end_date:{}", start_date, end_date)
logger.info("start_date:{},end_date:{}".format(start_date, end_date))

for item in ram_trade.find(condition):
tick = to_tick(item)
Expand Down

0 comments on commit 03af3aa

Please sign in to comment.