From da863921b59f5b739b188f9d71efe80d6b130967 Mon Sep 17 00:00:00 2001 From: Alexandre Yang Date: Tue, 26 May 2020 19:38:14 +0200 Subject: [PATCH] update debug --- envoy/datadog_checks/envoy/envoy.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/envoy/datadog_checks/envoy/envoy.py b/envoy/datadog_checks/envoy/envoy.py index e1abb82cd91bb4..dd82967d61fa4a 100644 --- a/envoy/datadog_checks/envoy/envoy.py +++ b/envoy/datadog_checks/envoy/envoy.py @@ -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