aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-06-10 15:58:51 -0500
committerFrederick Muriuki Muriithi2025-06-10 17:19:44 -0500
commit1c93d2597e16d9828760e10aeb056fa10fd4fcf9 (patch)
treeb4f02d3269e5772572376f6acf1d6cfbea1ae46b /uploader
parentdf9fe5b9d00753190b3d2ee487f4faee63fca57d (diff)
downloadgn-uploader-1c93d2597e16d9828760e10aeb056fa10fd4fcf9.tar.gz
Bug: Fix logging.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/phenotypes/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/phenotypes/models.py b/uploader/phenotypes/models.py
index 20b8e77..a6ee694 100644
--- a/uploader/phenotypes/models.py
+++ b/uploader/phenotypes/models.py
@@ -374,14 +374,14 @@ def quick_save_phenotypes_data(
prefix=f"{table}_data", mode="wt", dir=tmpdir) as tmpfile,
conn.cursor(cursorclass=DictCursor) as cursor):
_count = 0
- console.debug("Write data rows to text file.")
+ logger.debug("Write data rows to text file.")
for row in dataitems:
tmpfile.write(
f'{row["data_id"]}\t{row["sample_id"]}\t{row["value"]}\n')
_count = _count + 1
tmpfile.flush()
- console.debug("Load text file into database (table: %s)",
+ logger.debug("Load text file into database (table: %s)",
_table_details["table"])
cursor.execute(
f"LOAD DATA LOCAL INFILE '{tmpfile.name}' "