debug variable in compose

This commit is contained in:
2022-04-25 13:38:13 -04:00
parent 594d85c7fb
commit 36102f7af0
2 changed files with 4 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ services:
- TMDB_API_TOKEN= - TMDB_API_TOKEN=
- SA_API_TOKEN= - SA_API_TOKEN=
- TG_BOT_TOKEN= - TG_BOT_TOKEN=
- TG_BOT_USER= # (optional) Limits access to the bot to a single Telegram user - TG_BOT_USER= # (optional) Limits access to the bot to a single Telegram user.
- STREAMING_COUNTRY= # (optional) Default "us" - STREAMING_COUNTRY= # (optional) Search country for streaming services. Default "us".
- TG_DEBUG= # (optional, True/False) Verbose debug logging. Default False.
restart: always restart: always

View File

@@ -39,7 +39,7 @@ updater = Updater(token=bot_token, use_context=True)
dispatcher = updater.dispatcher dispatcher = updater.dispatcher
if logging_debug: if logging_debug and logging_debug == "True":
logging.basicConfig( logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.DEBUG) level=logging.DEBUG)