fix: log remote IP when ping fails

pull/5843/head
Sam Arnold 2022-01-25 07:41:14 -05:00
parent 9eebcb0014
commit 27bb07d7cf
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ func (s *Service) sourceVersion(ctx context.Context, src *chronograf.Source) str
if err == nil {
return retVal
}
s.Logger.WithField("error", err.Error()).Info("Failed to retrieve database version")
s.Logger.WithField("error", err.Error()).WithField("url", src.URL).Info("Failed to retrieve database version")
if strings.HasPrefix(src.Version, "1.") || strings.HasPrefix(src.Version, "2.") {
// keep the client version unchanged
return src.Version