Skip to content

Conversation

@carolmorneau
Copy link
Contributor

@carolmorneau carolmorneau commented Oct 15, 2025

Summary

Fixes logging reconfiguration issue during Alembic database migrations that was overriding the application's logging configuration.

Changes

  • Removed logging configuration from alembic.ini
  • Updated env.py: Removed the fileConfig() call that was loading and applying the Alembic logging configuration from the config file

Problem

When Alembic migrations execute, they would reconfigure the Python logging system using their own configuration from alembic.ini. This would override the application's existing logging setup, causing unexpected loss of properly configured loggers and changes in log formatting.

Related

This fix mirrors the changes made in SolaceDev/solace-agent-mesh-enterprise#208 which addressed the same issue in the enterprise repository.

…n takes place

Fixes logging reconfiguration issue during Alembic database migrations that was overriding the application's logging configuration.

Changes:
- Removed logging configuration from alembic.ini: Deleted the [loggers], [handlers], and [formatters] sections that were defining custom logging behavior for Alembic
- Updated env.py: Removed the fileConfig() call that was loading and applying the Alembic logging configuration from the config file

This prevents Alembic from reconfiguring the Python logging system and overriding the application's existing logging setup during migrations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@sonarqube-solacecloud
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@github-actions
Copy link

WhiteSource Policy Violation Summary

✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-pr-400!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants