Explorar o código

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

ogert %!s(int64=4) %!d(string=hai) anos
pai
achega
c0e7442f15
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)