From 8f429c35cbcaba4eaac53b06ada26b6b46242cef Mon Sep 17 00:00:00 2001 From: ihotte <3087168217@qq.com> Date: Thu, 19 Aug 2021 13:40:47 +0800 Subject: [PATCH] Fix: observatory log & JSON config(#1211) Co-authored-by: ihotte --- app/observatory/observer.go | 2 +- infra/conf/observatory.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/observatory/observer.go b/app/observatory/observer.go index 0a573a96aa4..571c16eba9b 100644 --- a/app/observatory/observer.go +++ b/app/observatory/observer.go @@ -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()} diff --git a/infra/conf/observatory.go b/infra/conf/observatory.go index 61069520677..b8ca866ed7a 100644 --- a/infra/conf/observatory.go +++ b/infra/conf/observatory.go @@ -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) {