Skip to content

fix: replace f-string logger calls with lazy % formatting#7

Open
KrishanYadav333 wants to merge 1 commit intoOSIPI:mainfrom
KrishanYadav333:fix/lazy-logging-6
Open

fix: replace f-string logger calls with lazy % formatting#7
KrishanYadav333 wants to merge 1 commit intoOSIPI:mainfrom
KrishanYadav333:fix/lazy-logging-6

Conversation

@KrishanYadav333
Copy link
Copy Markdown

Closes #6

Logger calls were using f-strings which eagerly evaluate the string even when the log level is disabled. Replace with lazy %-style formatting so the string is only built if the message is emitted.

Closes OSIPI#6

Logger calls were using f-strings which eagerly evaluate the string
even when the log level is disabled. Replace with lazy %-style
formatting so the string is only built if the message is emitted.

Affected files (8 occurrences):
- pyasl/pipelines/run_pipeline.py (5)
- pyasl/modules/oxford_asl_split_m0.py (2)
- pyasl/modules/save_outputs.py (1)
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.

Logger calls use f-strings instead of lazy % formatting

1 participant