Improved logs and module level housekeeping
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user