mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-02-16 19:40:39 +01:00
13 lines
317 B
Python
13 lines
317 B
Python
import logging
|
|
|
|
from .main import Indexer
|
|
from .config import debug
|
|
|
|
|
|
logging.basicConfig(level=logging.DEBUG if debug else logging.INFO)
|
|
logging.getLogger("telethon").setLevel(logging.INFO if debug else logging.ERROR)
|
|
logging.getLogger("aiohttp").setLevel(logging.INFO if debug else logging.ERROR)
|
|
|
|
|
|
Indexer().run()
|