Skip to content

Fewer 'throws' while logging - #4433

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
vasslitvinov:logger-no-throw
May 23, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
vasslitvinov:logger-no-throw

Conversation

@vasslitvinov

Copy link
Copy Markdown
Contributor

Switch logging methods to be non-throwing, by removing their dependence on the format(). This eliminates the need for try! when calling them and reduces (slightly) the size of the generated code.

While there, clean up and factor our the implementation; remove logger calls in CheckpointMsg that were added by mistake.

Comment thread src/Logging.chpl Resolved
Signed-off-by: Vassily Litvinov <[email protected]>

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for cleaning this up! We actually have a goal of eventually removing all try!s, so this helps a lot!

@ajpotts
ajpotts added this pull request to the merge queue May 23, 2025
Merged via the queue into Bears-R-Us:master with commit f6b5028 May 23, 2025
@vasslitvinov
vasslitvinov deleted the logger-no-throw branch May 27, 2025 22:20
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