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

chore: remove f-string in logging call #1234

Merged
merged 2 commits into from
May 29, 2024

Conversation

tonyandrewmeyer
Copy link
Contributor

Use lazy interpolation in logging.* calls.

Missed in #1227, because I didn't think to enable multi-line searching, and this logging call wraps the f-string on to the next line.

'between when the charm was initialised and when the event was emitted. '
'Make sure sure you store a reference to the observer.'
'Make sure sure you store a reference to the observer.', observer_path
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm surprised Ruff doesn't put observer_path on its own line.

Copy link
Contributor

Choose a reason for hiding this comment

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

it would if there was a trailing comma.

or if the line was too long and had to be split.

@dimaqq dimaqq merged commit a9055a7 into canonical:main May 29, 2024
26 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.

3 participants