Skip to content

Commit dcd46c8

Browse files
committed
fix: Avoid reconfiguring logging when Alembic migration takes place
1 parent b0aa1ce commit dcd46c8

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

src/solace_agent_mesh/agent/adk/alembic.ini

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -110,39 +110,3 @@ sqlalchemy.url =
110110
# ruff.type = exec
111111
# ruff.executable = ruff
112112
# ruff.options = check --fix REVISION_SCRIPT_FILENAME
113-
114-
# Logging configuration. This is also consumed by the user-maintained
115-
# env.py script only.
116-
[loggers]
117-
keys = root,sqlalchemy,alembic
118-
119-
[handlers]
120-
keys = console
121-
122-
[formatters]
123-
keys = generic
124-
125-
[logger_root]
126-
level = WARNING
127-
handlers = console
128-
qualname =
129-
130-
[logger_sqlalchemy]
131-
level = WARNING
132-
handlers =
133-
qualname = sqlalchemy.engine
134-
135-
[logger_alembic]
136-
level = INFO
137-
handlers =
138-
qualname = alembic
139-
140-
[handler_console]
141-
class = StreamHandler
142-
args = (sys.stderr,)
143-
level = NOTSET
144-
formatter = generic
145-
146-
[formatter_generic]
147-
format = %(levelname)-5.5s [%(name)s] %(message)s
148-
datefmt = %H:%M:%S

src/solace_agent_mesh/agent/adk/alembic/env.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from logging.config import fileConfig
2-
31
from sqlalchemy import engine_from_config
42
from sqlalchemy import pool
53

@@ -9,11 +7,6 @@
97
# access to the values within the .ini file in use.
108
config = context.config
119

12-
# Interpret the config file for Python logging.
13-
# This line sets up loggers basically.
14-
if config.config_file_name is not None:
15-
fileConfig(config.config_file_name)
16-
1710
# add your model's MetaData object here
1811
# for 'autogenerate' support
1912
from google.adk.sessions.database_session_service import Base

0 commit comments

Comments
 (0)