Skip to content

Commit

Permalink
feat: print vtadmin file in case of error
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Nov 6, 2024
1 parent 32ea482 commit e1dc25b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion go/test/endtoend/cluster/vtadmin_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ func (vp *VtAdminProcess) Setup() (err error) {
vp.exit = make(chan error)
go func() {
if vp.proc != nil {
vp.exit <- vp.proc.Wait()
exitErr := vp.proc.Wait()
if exitErr != nil {
log.Errorf("vtadmin process exited with error: %v", exitErr)
data, _ := os.ReadFile(logFile)
log.Errorf("vtadmin stderr - %s", string(data))
}
vp.exit <- exitErr
close(vp.exit)
}
}()
Expand Down

0 comments on commit e1dc25b

Please sign in to comment.