From 03af3aa4caaf1ae36267e60f87d7ea8480c4d413 Mon Sep 17 00:00:00 2001 From: foolcage <5533061@qq.com> Date: Thu, 2 Aug 2018 21:29:45 +0800 Subject: [PATCH] fix log issue --- fooltrader/datasource/eos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fooltrader/datasource/eos.py b/fooltrader/datasource/eos.py index 476067b..3daac37 100644 --- a/fooltrader/datasource/eos.py +++ b/fooltrader/datasource/eos.py @@ -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' @@ -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)