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()
|