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
Error messages generally consist of a reason that explains what happened. However some of them contain more details such as the function name. This is problematic when the function name changes and the reason string is unique enough to find the exact line in the source code based on the debug log.
Most error messages are already unique and we should probably not put the function name (or similar) in them and instead make sure that they don't change otherwise.
If for some reason it is helpful to include the function name (or line number, file name, ...), it should probably go at the end of the log message in braces. E.g. LogPrintf("Init failed due to coding error (DEBUG: Init(), init.cpp:1234)");.
Not sure about that, so opening a brainstorming issue.
Error messages generally consist of a reason that explains what happened. However some of them contain more details such as the function name. This is problematic when the function name changes and the reason string is unique enough to find the exact line in the source code based on the debug log.
Most error messages are already unique and we should probably not put the function name (or similar) in them and instead make sure that they don't change otherwise.
If for some reason it is helpful to include the function name (or line number, file name, ...), it should probably go at the end of the log message in braces. E.g.
LogPrintf("Init failed due to coding error (DEBUG: Init(), init.cpp:1234)");
.Not sure about that, so opening a brainstorming issue.
See also:
__func__
for log messages Use __func__ for log messages #15981The text was updated successfully, but these errors were encountered: