about summary refs log tree commit diff
path: root/gn3/db
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/menu.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gn3/db/menu.py b/gn3/db/menu.py
index 3fe9062..34dedde 100644
--- a/gn3/db/menu.py
+++ b/gn3/db/menu.py
@@ -1,10 +1,12 @@
 """Menu generation code for the data in the dropdowns in the index page."""
-
+import logging
 from typing import Tuple
 from functools import reduce
 
 from gn3.db.species import get_all_species
 
+logger = logging.getLogger(__name__)
+
 def gen_dropdown_json(conn):
     """
     Generates and outputs (as json file) the data for the main dropdown menus on
@@ -37,6 +39,7 @@ def get_groups(conn, species_names: Tuple[str, ...]):
             "IFNULL(InbredSet.Family, InbredSet.FullName) ASC, "
             "InbredSet.FullName ASC, "
             "InbredSet.MenuOrderId ASC")
+        logger.debug("'get_groups' QUERY: %s, %s", query, species_names)
         cursor.execute(query, tuple(species_names))
         results = cursor.fetchall()