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 log usage - take 2 #69

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Optimize log usage - take 2 #69

merged 1 commit into from
Sep 13, 2024

Conversation

nyurik
Copy link
Collaborator

@nyurik nyurik commented Sep 13, 2024

This replaces #68 without the extra struct

// TODO: avoid Stringification
pub fn log(logtag: LogTag, msg: &str) {
pub fn log(logtag: LogTag, msg: impl AsRef<str>) {
let msg = msg.as_ref();
Copy link
Owner

Choose a reason for hiding this comment

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

Id prefer to use VSLbt here, but I can change it post-merge

@gquintard gquintard merged commit 6acfdcd into gquintard:main Sep 13, 2024
2 checks passed
@nyurik nyurik deleted the logging2 branch September 13, 2024 18:25
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