MCPcopy Create free account
hub / github.com/devfeel/dotweb / addErrorData

Method addErrorData

core/state.go:249–256  ·  view source on GitHub ↗
(page string, err error, num uint64)

Source from the content-addressed store, hash-verified

247}
248
249func (state *ServerStateInfo) addErrorData(page string, err error, num uint64) {
250 // get from pool
251 info := state.infoPool.errorInfo.Get().(*ErrorInfo)
252 info.URL = page
253 info.ErrMsg = err.Error()
254 info.Num = num
255 state.dataChan_Error <- info
256}
257
258// handle logging
259func (state *ServerStateInfo) handleInfo() {

Callers 1

AddErrorCountMethod · 0.95

Calls 2

GetMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected