Skip to content

Commit

Permalink
Fix the format of some error messages
Browse files Browse the repository at this point in the history
before: the outbound foois alive
after : the outbound foo is alive
  • Loading branch information
digglife committed Aug 25, 2021
1 parent 433e342 commit 61dfe34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/observatory/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (o *Observer) probe(outbound string) ProbeResult {
trackedCtx := session.TrackedConnectionError(o.ctx, errorCollectorForRequest)
conn, err := tagged.Dialer(trackedCtx, dest, outbound)
if err != nil {
return newError("cannot dial remote address", dest).Base(err)
return newError("cannot dial remote address ", dest).Base(err)
}
connection = conn
return nil
Expand Down Expand Up @@ -154,12 +154,12 @@ func (o *Observer) probe(outbound string) ProbeResult {
fullerr := newError("underlying connection failed").Base(errorCollectorForRequest.UnderlyingError())
fullerr = newError("with outbound handler report").Base(fullerr)
fullerr = newError("GET request failed:", err).Base(fullerr)
fullerr = newError("the outbound ", outbound, "is dead:").Base(fullerr)
fullerr = newError("the outbound ", outbound, " is dead:").Base(fullerr)
fullerr = fullerr.AtInfo()
fullerr.WriteToLog()
return ProbeResult{Alive: false, LastErrorReason: fullerr.Error()}
}
newError("the outbound ", outbound, "is alive:", GETTime.Seconds()).AtInfo().WriteToLog()
newError("the outbound ", outbound, " is alive:", GETTime.Seconds()).AtInfo().WriteToLog()
return ProbeResult{Alive: true, Delay: GETTime.Milliseconds()}
}

Expand Down

0 comments on commit 61dfe34

Please sign in to comment.