print to logger.info

This commit is contained in:
LDOUBLEV 2020-07-01 13:09:44 +08:00
parent 3892a8ca02
commit ed454d1423
1 changed files with 2 additions and 3 deletions

View File

@ -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__':