This commit is contained in:
mihalin 2022-01-19 15:48:50 +03:00
parent 173014fda0
commit d0f9042fb6
3 changed files with 1 additions and 7 deletions

View File

@ -15,9 +15,6 @@ import olgram.commands.info # noqa: F401
from server.server import main as server_main
import logging
logging.basicConfig(level=logging.INFO)
async def init_database():
await Tortoise.init(config=TORTOISE_ORM)

View File

@ -1,9 +1,6 @@
import asyncio
import logging
from olgram.migrations.custom import migrate
logging.basicConfig(level=logging.INFO)
if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(migrate())

View File

@ -13,8 +13,8 @@ from olgram.settings import ServerSettings
from olgram.models.models import Bot, GroupChat, BannedUser
logging.basicConfig(level=logging.INFO)
_logger = logging.getLogger(__name__)
_logger.setLevel(logging.INFO)
db_bot_instance: ContextVar[Bot] = ContextVar('db_bot_instance')