From 1c93d2597e16d9828760e10aeb056fa10fd4fcf9 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 10 Jun 2025 15:58:51 -0500 Subject: Bug: Fix logging. --- uploader/phenotypes/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uploader') 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}' " -- cgit v1.2.3