From 56cbf2033995aede1500fb1a8cbea7e056ad1b0c Mon Sep 17 00:00:00 2001 From: Lyncoln Date: Sun, 18 Oct 2026 00:25:48 -0400 Subject: [PATCH] Refined logs with ChatGPT help --- core/runtime/logs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/runtime/logs.py b/core/runtime/logs.py index b234093..cc9117c 100644 --- a/core/runtime/logs.py +++ b/core/runtime/logs.py @@ -14,6 +14,12 @@ def buildLog (action, outputs, response): if action.showstatus is True and response.ok: print(f"{action.name} successful") + try: + response_data = response.json() + except ValueError: + response_data = response.text + + print(response_data) elif action.showstatus is True and not response.ok: print(f"{action.name} failed with status code {response.status_code}")