Skip to content

Commit

Permalink
Fix: observatory log & JSON config(#1211)
Browse files Browse the repository at this point in the history
Co-authored-by: ihotte <[email protected]>
  • Loading branch information
ihotte and ihotte committed Aug 19, 2021
1 parent e39a69e commit 8f429c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/observatory/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ 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()}
Expand Down
2 changes: 1 addition & 1 deletion infra/conf/observatory.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type ObservatoryConfig struct {
SubjectSelector []string `json:"subjectSelector"`
ProbeURL string `json:"probeURL"`
ProbeInterval duration.Duration `json:"ProbeInterval"`
ProbeInterval duration.Duration `json:"probeInterval"`
}

func (o *ObservatoryConfig) Build() (proto.Message, error) {
Expand Down

0 comments on commit 8f429c3

Please sign in to comment.