diff options
| author | Frederick Muriuki Muriithi | 2025-04-07 15:16:49 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-04-07 15:16:49 -0500 |
| commit | 356ae9ce7a144ba492f2c02b36c1be4254d8ff39 (patch) | |
| tree | bdcdfb091452f97af60d5bd9690ee0c7f7c21876 /gn3/commands.py | |
| parent | bd6851177602fdbce9eec15ec2d600175242fb1f (diff) | |
| download | genenetwork3-356ae9ce7a144ba492f2c02b36c1be4254d8ff39.tar.gz | |
Log out debug messages separate from active statements.
Diffstat (limited to 'gn3/commands.py')
| -rw-r--r-- | gn3/commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py index 51b70c3..5c0dbd6 100644 --- a/gn3/commands.py +++ b/gn3/commands.py @@ -158,7 +158,8 @@ def run_sample_corr_cmd(method, this_trait_data, target_dataset_data): def run_cmd(cmd: str, success_codes: Tuple = (0,), env: Optional[str] = None) -> Dict: """Run CMD and return the CMD's status code and output as a dict""" try: - parsed_cmd = json.loads(__pk__("Attempting to parse command", cmd)) + current_app.logger.debug("Attempting to parse command: ==> %s <==", cmd) + parsed_cmd = json.loads(cmd) except json.decoder.JSONDecodeError as jderr: parsed_cmd = shlex.split(cmd) |
