diff --git a/insights/client/connection.py b/insights/client/connection.py index 37d5ae4d4d..0a4ddb0fd5 100644 --- a/insights/client/connection.py +++ b/insights/client/connection.py @@ -704,6 +704,7 @@ def upload_archive(self, data_collected, content_type, duration): try: c_facts = json.dumps(get_canonical_facts()) + logger.debug('Canonical facts collected:\n%s', c_facts) except Exception as e: logger.debug('Error getting canonical facts: %s', e) c_facts = None @@ -743,6 +744,7 @@ def upload_archive(self, data_collected, content_type, duration): logger.debug("Upload status: %s %s %s", upload.status_code, upload.reason, upload.text) + logger.debug('Request ID: %s', upload.headers.get('x-rh-insights-request-id', None)) if upload.status_code in (200, 201): # 200/201 from legacy, load the response the_json = json.loads(upload.text)