]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 14 Jul 2025 18:25:27 +0000 (20:25 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 14 Jul 2025 18:25:27 +0000 (20:25 +0200)
- debug lines added

fba/commands.py

index b24e4c1851c7e5c2b6bec0c50ebc8ca91fc30ff0..8610bf0023a655d333999d2318df8005aa3d4b91 100644 (file)
@@ -1051,6 +1051,8 @@ def fetch_instances(args: argparse.Namespace) -> int:
         # Fetch records
         database.cursor.execute("SELECT domain, origin, software FROM instances WHERE software = ? ORDER BY last_instance_fetch ASC", [software])
         rows = database.cursor.fetchall()
+
+        logger.debug("rows()=%d", len(rows))
     else:
         # Loop through some instances
         logger.debug("Querying database for peer sources ...")
@@ -1066,6 +1068,7 @@ WHERE software IN ( \
 ORDER BY total_peers DESC, last_response_time ASC, last_updated ASC"
     )
         rows = database.cursor.fetchall()
+        logger.debug("rows()=%d", len(rows))
 
     logger.info("Checking %d entries ...", len(rows))
     for row in rows: