-
Notifications
You must be signed in to change notification settings - Fork 544
Use correct log functions for std::format to work #10035
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
base: main
Are you sure you want to change the base?
Conversation
@@ -142,7 +142,7 @@ abort_if_negative_integer_argument (int arg, const char *arg_name, std::source_l | |||
[[gnu::always_inline]] | |||
inline void pd_log_location (std::source_location sloc = std::source_location::current ()) noexcept | |||
{ | |||
log_info_nocheck (LOG_DEFAULT, "loc: {}:{} ('{}')", sloc.file_name (), sloc.line (), sloc.function_name ()); | |||
log_warn (LOG_DEFAULT, "loc: {}:{} ('{}')", sloc.file_name (), sloc.line (), sloc.function_name ()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change from "info" to "warn"?
@@ -142,7 +142,7 @@ abort_if_negative_integer_argument (int arg, const char *arg_name, std::source_l | |||
// of the calls present. | |||
force_inline inline void pd_log_location (std::source_location sloc = std::source_location::current ()) noexcept | |||
{ | |||
log_info_nocheck (LOG_DEFAULT, "loc: {}:{} ('{}')", sloc.file_name (), sloc.line (), sloc.function_name ()); | |||
log_warn (LOG_DEFAULT, "loc: {}:{} ('{}')", sloc.file_name (), sloc.line (), sloc.function_name ()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change from "info" to "warn"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log_info_nocheck_fmt
caused the code to fail to compile and I didn't want to make the PR bigger than it needs to be. This is a debugging function not used anywhere in the code (I use it for logging locally sometimes), so log_warn
works just as fine as log_info
No description provided.