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

Optimize (not) printing empty string from formatter #113

Merged
merged 1 commit into from
Oct 8, 2024

Commits on Oct 8, 2024

  1. Optimize (not) printing empty string from formatter

    Sometimes it is handy to implement some additional filtering in a
    custom formatter function. In this case the formatter can return the
    empty string if it wants to ignore a trace message. Optimize the
    formatting so in the empty string case it does not send an io request
    to the IO server. This avoids a "flickering prompt" effect (when the
    empty string is printed) in case of 1000s of ignored trace messages
    per second.
    gomoripeti committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    c76b423 View commit details
    Browse the repository at this point in the history