[Bug fix] Fix issues related to logging configuration (#1318)

This commit is contained in:
Deshraj Yadav
2024-03-14 00:45:37 -07:00
committed by GitHub
parent ebdce87fde
commit 8520033d44
4 changed files with 11 additions and 17 deletions

View File

@@ -1,5 +1,4 @@
import os
from logging.config import fileConfig
from alembic import context
from sqlalchemy import engine_from_config, pool
@@ -10,11 +9,6 @@ from embedchain.core.db.models import Base
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
target_metadata = Base.metadata
# other values from the config, defined by the needs of env.py,