Skip to content

Commit

Permalink
Change logging msg to DEBUG and add meaningfull msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Javy de Koning committed Apr 5, 2024
1 parent 0eb2eab commit da320f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lambda_codebase/account_processing/delete_default_vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def find_default_vpc(ec2_client):
if vpc.get("IsDefault", False):
return vpc["VpcId"]
except ClientError as error:
LOGGER.error(
"An error occurred: %s", error
LOGGER.debug(
"An error occurred while describing VPCs: %s", error
)
raise
# If no default VPC found, return None
Expand Down

0 comments on commit da320f4

Please sign in to comment.