You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log messages are queued so you have to search the code for the non variable bits to locate their origin.
We should add something like std::source_location to attach that information. __FILE__ and __LINE__ macros can do this since std::source_location is C++20.
This should probably only be put into debug builds to keep pollution down.
It's just small effort that can help in certain situations. The logging happens on another thread it's not always going to be clear since we currently have 2 threads that can continue executing before the message is even processed. The number of threads is only likely to grow.
Log messages are queued so you have to search the code for the non variable bits to locate their origin.
We should add something like
std::source_location
to attach that information.__FILE__
and__LINE__
macros can do this sincestd::source_location
is C++20.This should probably only be put into debug builds to keep pollution down.
Originally posted by @bradallred in #1900 (comment)
The text was updated successfully, but these errors were encountered: