(parent context.Context)
| 2275 | } |
| 2276 | |
| 2277 | func (sc *ServerContext) AddServerLogContext(parent context.Context) context.Context { |
| 2278 | // ServerLogContext is separate from standard LogContext, so this does not reset the log context |
| 2279 | if sc != nil && sc.LogContextID != "" { |
| 2280 | return base.LogContextWith(parent, &base.ServerLogContext{LogContextID: sc.LogContextID}) |
| 2281 | } |
| 2282 | return parent |
| 2283 | } |
| 2284 | |
| 2285 | func (sc *ServerContext) SetContextLogID(parent context.Context, id string) context.Context { |
| 2286 | if sc != nil { |
no test coverage detected