fix(dnscheck): log "ok" rather than "<nil>" on success (#695)
See https://github.com/ooni/probe/issues/2020
This commit is contained in:
parent
88236a4352
commit
6a63f1b044
5 changed files with 33 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ func Collect(ctx context.Context, multi urlgetter.Multi, inputs []urlgetter.Mult
|
|||
count++
|
||||
percentage := float64(count) / float64(expect)
|
||||
callbacks.OnProgress(percentage, fmt.Sprintf(
|
||||
"dnscheck: measure %s: %+v", entry.Input.Config.ResolverURL, entry.Err,
|
||||
"dnscheck: measure %s: %+v", entry.Input.Config.ResolverURL, model.ErrorToStringOrOK(entry.Err),
|
||||
))
|
||||
outputch <- entry
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue