Skip to content

Commit

Permalink
fine grained context logs
Browse files Browse the repository at this point in the history
  • Loading branch information
apesternikov committed May 17, 2024
1 parent 526acc1 commit 9d999ed
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions testing/it_sidecar/it_sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,8 @@ func main() {

fmt.Println("READY")
<-ctx.Done()
switch ctx.Err() {
case context.DeadlineExceeded:
log.Print("Deadline exceeded")
case context.Canceled:
log.Print("Context Canceled")
default:
log.Print(ctx.Err())
if cause := context.Cause(ctx); cause != nil {
log.Print("ctx.Done: ", cause.Error())
}

}

0 comments on commit 9d999ed

Please sign in to comment.