feat: disable debug on deploy

This commit is contained in:
Hazel 2024-04-10 14:18:19 +02:00
parent 30829eebdb
commit 4898b0d5b1
2 changed files with 3 additions and 3 deletions

View File

@ -47,8 +47,8 @@ def dump_to_file(file_name: str, payload: str, is_json: bool = False, exit_after
def trace(msg: str): def trace(msg: str):
if DEBUG_TRACE: if not DEBUG_TRACE:
logging.debug(msg) return
output("trace: " + msg, BColors.OKBLUE) output("trace: " + msg, BColors.OKBLUE)

View File

@ -12,7 +12,7 @@ if not load_dotenv(Path(__file__).parent.parent.parent / ".env"):
__stage__ = os.getenv("STAGE", "prod") __stage__ = os.getenv("STAGE", "prod")
DEBUG = __stage__ == "dev" and True DEBUG = (__stage__ == "dev") and True
DEBUG_LOGGING = DEBUG and False DEBUG_LOGGING = DEBUG and False
DEBUG_TRACE = DEBUG and True DEBUG_TRACE = DEBUG and True
DEBUG_YOUTUBE_INITIALIZING = DEBUG and False DEBUG_YOUTUBE_INITIALIZING = DEBUG and False