Skip to content

Fix the pretty str function#759

Merged
schuellc-nvidia merged 2 commits into
developfrom
fix/colang-2/pretty-str-function
Oct 4, 2024
Merged

Fix the pretty str function#759
schuellc-nvidia merged 2 commits into
developfrom
fix/colang-2/pretty-str-function

Conversation

@schuellc-nvidia

Copy link
Copy Markdown
Collaborator

No description provided.

@sklinglernv sklinglernv 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.

Looks good to me. Maybe the code comment can be made clearer (optional for me).

if isinstance(record, logging.LogRecord):
text = super().format(record)
else:
# Otherwise, assume it's a string

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.

Detail: here we are not assuming it is a string, but converting it to a string, no?

@schuellc-nvidia schuellc-nvidia merged commit 19e73ab into develop Oct 4, 2024
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