about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-26 13:14:46 -0500
committerFrederick Muriuki Muriithi2025-03-26 15:59:06 -0500
commit3c71f0ef05b3d3a0abdb6e6b826e318a0994d113 (patch)
treee59ede99a86f034f262e7db8f3cf3adeabca3b8d /uploader
parent4bfce99098799571152755b870677a94326ff3fe (diff)
downloadgn-uploader-3c71f0ef05b3d3a0abdb6e6b826e318a0994d113.tar.gz
Pass in system log-level to script.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/phenotypes/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 961c088..9c737fc 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -3,6 +3,7 @@ import sys
 import csv
 import uuid
 import json
+import logging
 import datetime
 import tempfile
 from typing import Any
@@ -974,7 +975,11 @@ def edit_upload_phenotype_data(# pylint: disable=[unused-argument]
                                            "-m", "scripts.phenotypes_bulk_edit",
                                            app.config["SQL_URI"],
                                            jobs_db,
-                                           str(job_id)
+                                           str(job_id),
+                                           "--log-level",
+                                           logging.getLevelName(
+                                               app.logger.getEffectiveLevel()
+                                           ).lower()
                                        ],
                                        "phenotype-bulk-edit",
                                        extra_meta = {