Skip to content

Commit

Permalink
update debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreYang committed May 26, 2020
1 parent ce9dec9 commit da86392
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion envoy/datadog_checks/envoy/envoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ def _collect_metadata(self, stats_url):
try:
raw_version = response.json()["version"].split('/')[1]
except json.decoder.JSONDecodeError as e:
self.log.debug('Error decoding json for url=`%s`. Error: %s', server_info_url, str(e))
self.log.debug(
'Error decoding json for url=`%s`. Error: %s. Content: "%s"',
server_info_url,
str(e),
response.content.decode(),
)

if raw_version is None:
# Search version in server info for Envoy version <= 1.8
Expand Down

0 comments on commit da86392

Please sign in to comment.