Skip to content

Commit

Permalink
testtool: log messages
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ott <[email protected]>
  • Loading branch information
smo4201 committed Dec 7, 2023
1 parent c23402e commit 66424f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions testtool/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,16 @@ func publishResultAsync(addr string, result *ar.VerificationResult, wg *sync.Wai

func publishResult(addr string, result *ar.VerificationResult) {

log.Tracef("Publishing result to %v", addr)

if result.Prover == "" {
log.Trace("Will not publish result: prover is empty (this happens if connection could not be established)")
return
}
if addr == "" {
log.Trace("Will not publish: no address specified")
return
}

log.Tracef("Publishing result to '%v'", addr)

data, err := json.Marshal(*result)
if err != nil {
Expand Down

0 comments on commit 66424f9

Please sign in to comment.