浏览代码

Add log print telling many rows of data were fetched from the database

ogert 4 年之前
父节点
当前提交
c0e7442f15
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cdplib/db_handlers/MongodbHandler.py

+ 1 - 0
cdplib/db_handlers/MongodbHandler.py

@@ -275,6 +275,7 @@ class MongodbHandler:
         data = list(data)
         try:
             if len(data)> 0:
+                self._log.info(('{} rows were fetched from the database').format(len(data)))
                 df = pd.DataFrame(data)
                 if index is not None:
                     df.set_index(index, inplace=True)