MCPcopy
hub / github.com/dnote/dnote / Error

Method Error

pkg/server/log/log.go:125–127  ·  view source on GitHub ↗

Error logs the given entry at an error level

(msg string)

Source from the content-addressed store, hash-verified

123
124// Error logs the given entry at an error level
125func (e Entry) Error(msg string) {
126 e.write(LevelError, msg)
127}
128
129// ErrorWrap logs the given entry with the error message annotated by the given message
130func (e Entry) ErrorWrap(err error, msg string) {

Callers 15

ErrorWrapMethod · 0.95
TestNewDefaultBackendFunction · 0.45
TestGetTokenFunction · 0.45
RespondForbiddenFunction · 0.45
RespondUnauthorizedFunction · 0.45
RespondNotFoundFunction · 0.45
RespondInvalidSMTPConfigFunction · 0.45
DoErrorFunction · 0.45
NotSupportedFunction · 0.45
LimitMethod · 0.45
TestLimitFunction · 0.45
MustExecFunction · 0.45

Calls 1

writeMethod · 0.95

Tested by 4

TestNewDefaultBackendFunction · 0.36
TestGetTokenFunction · 0.36
TestLimitFunction · 0.36
TestMainFunction · 0.36