Skip to content

Commit

Permalink
chore: remove f-string in logging call (#1234)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tonyandrewmeyer authored May 29, 2024
1 parent e40f78d commit a9055a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ops/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ def _reemit(self, single_event_path: Optional[str] = None):

else:
logger.warning(
f'Reference to ops.Object at path {observer_path} has been garbage collected '
'Reference to ops.Object at path %s has been garbage collected '
'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
)

if event.deferred:
Expand Down

0 comments on commit a9055a7

Please # to comment.