Skip to content

RFC: hide some of the logging macro expansion inside a function #25911

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

Closed
wants to merge 1 commit into from

Conversation

KristofferC
Copy link
Member

end

# This is in a separate function for performance
function maybe_log(std_level, level, _module, id, group, msg, file, line, kwargs...)
Copy link
Member Author

Choose a reason for hiding this comment

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

Should be ;kwargs...

@KristofferC
Copy link
Member Author

KristofferC commented Feb 6, 2018

Should benchmark properly if this increases performance or just fixes the closure problem in #25909. The keyword arguments might make it not be that good.

@KristofferC
Copy link
Member Author

I dont think this works because the point is to delay the creation of the message.

@KristofferC KristofferC closed this Feb 6, 2018
@DilumAluthge DilumAluthge deleted the kc/outline_log branch March 25, 2021 22:06
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.

1 participant