Improved logs and module level housekeeping

This commit is contained in:
Lyncoln
2026-10-28 11:22:06 -04:00
parent 902d79c00a
commit 80c43578f3
3 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import logging
import os
def buildLog (action, outputs, response):
if hasattr(action, "prints"):
@@ -12,7 +13,7 @@ def buildLog (action, outputs, response):
except (KeyError, TypeError):
pass
response_log = False
response_log = os.environ.get("LOGS_SUCCESS_RESPONSE", "false").lower() == "true"
if action.showstatus is True and response.ok:
if response_log: