mirror of
https://github.com/skoobasteeve/telegram-moviebot.git
synced 2026-03-20 03:28:57 +00:00
debug variable in compose
This commit is contained in:
@@ -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
|
||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user