(ctx context.Context)
| 29 | } |
| 30 | |
| 31 | func getLogger(ctx context.Context) *logger.Logger { |
| 32 | if ctx == nil { |
| 33 | pc, _, _, _ := goruntime.Caller(1) |
| 34 | funcName := goruntime.FuncForPC(pc).Name() |
| 35 | log.Fatalf("cannot call '%s': %s", funcName, contextError) |
| 36 | } |
| 37 | result := ctx.Value("logger") |
| 38 | if result != nil { |
| 39 | return result.(*logger.Logger) |
| 40 | } |
| 41 | pc, _, _, _ := goruntime.Caller(1) |
| 42 | funcName := goruntime.FuncForPC(pc).Name() |
| 43 | log.Fatalf("cannot call '%s': %s", funcName, contextError) |
| 44 | return nil |
| 45 | } |
| 46 | |
| 47 | func getEvents(ctx context.Context) frontend.Events { |
| 48 | if ctx == nil { |
no test coverage detected
searching dependent graphs…