6d6350a511
Breakage is due to this change in go 1.12: Tracebacks, runtime.Caller, and runtime.Callers no longer include compiler-generated initialization functions. Doing a traceback during the initialization of a global variable will now show a function named PKG.init.ializers. Fix #137
8 lines
161 B
Go
8 lines
161 B
Go
// +build go1.12
|
|
|
|
package zerolog
|
|
|
|
// Since go 1.12, some auto generated init functions are hidden from
|
|
// runtime.Caller.
|
|
const contextCallerSkipFrameCount = 2
|