Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set sqlalchemy logger to allow query debugging #105

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

glatterf42
Copy link
Member

While working at the GAMS transport tutorial, I found an error in the DB layer that I needed to debug by studying the SQL query generated from my code.
Luckily, @meksor quickly explained how we usually do this (by setting IXMP4_MODE=debug before calling our code), but the usual way did not work because of a change in our settings. This PR fixes our settings so that it works again (thanks @meksor for quickly pointing this out).
Here's to hoping it doesn't break anything downstream.

@glatterf42 glatterf42 added the bug Something isn't working label Aug 2, 2024
@glatterf42 glatterf42 requested a review from meksor August 2, 2024 12:11
@glatterf42 glatterf42 self-assigned this Aug 2, 2024
Copy link
Contributor

@meksor meksor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@glatterf42 glatterf42 merged commit d6edf33 into main Aug 5, 2024
10 checks passed
@glatterf42 glatterf42 deleted the fix/sqlalchemy-logger-setting branch August 5, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants