func()

in requests.go [93:106]


func (req *WebhookRequest) Logger() *log.Logger {
	ctx := req.Context()
	ctxLg := ctx.Value(Logger)
	if ctxLg == nil {
		// During testing, it's possible the user defined logger was not
		// flowed down.  This is provided for convenience.
		return log.Default()
	}
	lg, ok := ctxLg.(*log.Logger)
	if !ok {
		return log.Default()
	}
	return lg
}