Skip to content

Commit

Permalink
Debugging info (#45)
Browse files Browse the repository at this point in the history
* Report HAProxy version

Signed-off-by: Raul Sevilla <[email protected]>

* More debugging information

Signed-off-by: Raul Sevilla <[email protected]>

---------

Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Oct 3, 2023
1 parent 48e0bfb commit 77533cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/runner/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ func exec(ctx context.Context, tool tools.Tool, pod corev1.Pod, result *tools.Re
Stderr: &stderr,
})
if err != nil {
log.Errorf("Exec failed in pod %s: %v", pod.Name, err.Error())
log.Errorf("Exec failed in pod %s: %v, stderr: %v", pod.Name, err.Error(), stderr.String())
return err
}
podResult, err := tool.ParseResult(stdout.String(), stderr.String())
if err != nil {
log.Errorf("Result parsing failed: %v", err.Error())
log.Errorf("Stdout: %v", stdout.String())
log.Errorf("Stderr: %v", stderr.String())
return err
}
podResult.Name = pod.Name
Expand Down
1 change: 1 addition & 0 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func Start(uuid, baseUUID, baseIndex string, tolerancy int, indexer *indexers.In
return err
}
clusterMetadata.HAProxyVersion, err = getHAProxyVersion()
log.Infof("HAProxy version: %s", clusterMetadata.HAProxyVersion)
if err != nil {
return err
}
Expand Down

0 comments on commit 77533cf

Please sign in to comment.