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

Convert various log messages to formatted strings #787

Open
jrconlin opened this issue Oct 18, 2024 · 0 comments
Open

Convert various log messages to formatted strings #787

jrconlin opened this issue Oct 18, 2024 · 0 comments

Comments

@jrconlin
Copy link
Member

jrconlin commented Oct 18, 2024

slog has introduced a "formatted" version of logging statements. You can now inline some variables into strings, just like format!() strings.

(e.g.

debug!("Found a {} in {:?}", &str_value, some_array):

can be expressed as

debug!("Found a {str_value} in {some_array:?}");

)

We should consider using this format for consistent string formatting and presentation.

┆Issue is synchronized with this Jira Task

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

No branches or pull requests

1 participant