From c474a23339fb030a6f807331aa3a9858daf18685 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Tue, 15 Oct 2019 11:10:05 +0300 Subject: [PATCH] Removed traceback logging of expected error in AWS instance --- monkey/common/cloud/aws_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/common/cloud/aws_instance.py b/monkey/common/cloud/aws_instance.py index cf50a3588..6b13b69bb 100644 --- a/monkey/common/cloud/aws_instance.py +++ b/monkey/common/cloud/aws_instance.py @@ -31,7 +31,7 @@ class AwsInstance(object): self.region = self._parse_region( urllib.request.urlopen(AWS_LATEST_METADATA_URI_PREFIX + 'meta-data/placement/availability-zone').read()) except (urllib.error.URLError, IOError) as e: - logger.debug("Failed init of AwsInstance while getting metadata: {}".format(e), exc_info=True) + logger.debug("Failed init of AwsInstance while getting metadata: {}".format(e)) try: self.account_id = self._extract_account_id(