feat: disable debug on deploy
This commit is contained in:
parent
30829eebdb
commit
4898b0d5b1
@ -47,8 +47,8 @@ def dump_to_file(file_name: str, payload: str, is_json: bool = False, exit_after
|
||||
|
||||
|
||||
def trace(msg: str):
|
||||
if DEBUG_TRACE:
|
||||
logging.debug(msg)
|
||||
if not DEBUG_TRACE:
|
||||
return
|
||||
|
||||
output("trace: " + msg, BColors.OKBLUE)
|
||||
|
||||
|
@ -12,7 +12,7 @@ if not load_dotenv(Path(__file__).parent.parent.parent / ".env"):
|
||||
|
||||
__stage__ = os.getenv("STAGE", "prod")
|
||||
|
||||
DEBUG = __stage__ == "dev" and True
|
||||
DEBUG = (__stage__ == "dev") and True
|
||||
DEBUG_LOGGING = DEBUG and False
|
||||
DEBUG_TRACE = DEBUG and True
|
||||
DEBUG_YOUTUBE_INITIALIZING = DEBUG and False
|
||||
|
Loading…
Reference in New Issue
Block a user