-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Developer Productivity
-
Storage Engines
-
8
Currently, all the logs do not contain information about the specific code location(source file name + line number) that generated this log string. So it can be useful to have this information for the WT logs to help developers navigate through the codebase and execution flows during debugging.
Additionally, it makes life significantly easier since some log messages are built from printf-like expressions and that complicates the place that initiated this log entry.
Generally speaking, the proposal is to include the highlighted part in each log entry:
[1743474503:661528][36322:0x2087f8840][filename.c:123], wt, file:WiredTiger.wt, close_ckpt: [WT_VERB_BLOCK][DEBUG_1]: live.avail: allocate 4096 from range 24576-36864, range shrinks to 28672-36864
So everyone can just immediately go to the place mentioned in the log entry to understand what is happening there.