Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/rs/zerolog
/ MarshalZerologObject
Method
MarshalZerologObject
error_marshal_test.go:14–19 ·
view source on GitHub ↗
(e *Event)
Source
from the content-addressed store, hash-verified
12
}
13
14
func
(l loggableError) MarshalZerologObject(e *Event) {
15
if
l.error == nil {
16
return
17
}
18
e.Str(
"l"
, strings.ToUpper(l.error.Error()))
19
}
20
21
type
nonLoggableError
struct
{
22
error
Callers
nothing calls this directly
Calls
2
Str
Method · 0.45
Error
Method · 0.45
Tested by
no test coverage detected