提交 ed454d14 编写于 作者: L LDOUBLEV

print to logger.info

上级 3892a8ca
...@@ -122,9 +122,8 @@ def test_reader(): ...@@ -122,9 +122,8 @@ def test_reader():
starttime = time.time() starttime = time.time()
print("reader:", count, len(data), batch_time) print("reader:", count, len(data), batch_time)
except Exception as e: except Exception as e:
print(e) logger.info(e)
print("finish reader:", count) logger.info("finish reader: {}, Success!".format(count))
print("success")
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册