2020-08-11 08:29:09 +02:00
|
|
|
import logging
|
|
|
|
|
2020-09-10 12:46:16 +02:00
|
|
|
from .main import Indexer
|
|
|
|
from .config import debug
|
2020-08-11 08:29:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
logging.basicConfig(level=logging.DEBUG if debug else logging.INFO)
|
|
|
|
logging.getLogger("telethon").setLevel(logging.INFO if debug else logging.ERROR)
|
2020-08-12 12:39:29 +02:00
|
|
|
logging.getLogger("aiohttp").setLevel(logging.INFO if debug else logging.ERROR)
|
2020-08-11 08:29:09 +02:00
|
|
|
|
2020-08-10 09:27:52 +02:00
|
|
|
|
2020-09-10 12:46:16 +02:00
|
|
|
Indexer().run()
|