video-stream/program/__init__.py

19 lines
457 B
Python
Raw Normal View History

__version__ = "0.6.5"
2022-02-25 03:53:23 +00:00
# >>> patch : F.11.22
2022-02-05 05:39:09 +00:00
2022-02-25 03:53:23 +00:00
import time
import logging
2022-02-25 04:47:13 +00:00
from driver.core import me_bot
2022-02-25 03:53:23 +00:00
logging.basicConfig(
2022-02-25 07:11:34 +00:00
filename=f'streambot-logs-{me_bot.id}.txt',
2022-02-25 03:53:23 +00:00
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
logging.getLogger("yt_dlp").setLevel(logging.ERROR)
logging.getLogger("pyrogram").setLevel(logging.ERROR)
logging.getLogger("PyTgCalls").setLevel(logging.ERROR)
LOGS = logging.getLogger(__name__)