Skip to content

Fix potential bug with settings.debug.on()#2704

Merged
kayween merged 2 commits into
cornellius-gp:mainfrom
benediktjohannes:patch-1
Jan 26, 2026
Merged

Fix potential bug with settings.debug.on()#2704
kayween merged 2 commits into
cornellius-gp:mainfrom
benediktjohannes:patch-1

Conversation

@benediktjohannes

Copy link
Copy Markdown
Contributor

I'm not quite sure about this one and I'd like to get a review please, but I think that debug is a class and can't be "debug()"

I'm not quite sure about this one and I'd like to get a review please, but I think that debug is a class and can't be "debug()"
@benediktjohannes

Copy link
Copy Markdown
Contributor Author

I'm not quite sure, but I thought of this because all the other times it's debug.on() as well without the "()", could you please review this @jacobrgardner thanks! 👍

@kayween kayween left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. We have used settings.debug.on() and settings.debug().on() inconsistently. Both should work because the state of this flag is stored as a class variable. But it's great to enforce consistency.

@kayween
kayween enabled auto-merge (squash) January 26, 2026 20:26
@kayween
kayween merged commit 07fa44d into cornellius-gp:main Jan 26, 2026
7 checks passed
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.

2 participants