Procházet zdrojové kódy

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

ogert před 4 roky
rodič
revize
c0e7442f15
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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)