Skip to content

Commit

Permalink
Merge pull request #5843 from influxdata/extra-logging
Browse files Browse the repository at this point in the history
fix: log remote URL when ping fails
  • Loading branch information
sranka authored Jan 25, 2022
2 parents 9eebcb0 + 27bb07d commit a09a31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a09a31a

Please sign in to comment.