From ea42a6274b1af173f9899a5b3bea8fea77c53712 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Date: Thu, 22 Dec 2022 11:48:44 +0100 Subject: [PATCH] fix(logs): add check_name to logs (#1574) --- .dockerignore | 6 ------ prowler/lib/check/check.py | 2 +- util/cloud9-installation.sh | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 3a5374b0..00000000 --- a/.dockerignore +++ /dev/null @@ -1,6 +0,0 @@ -.git/ -.github/ - -# Ignore output directories -output/ -junit-reports/ diff --git a/prowler/lib/check/check.py b/prowler/lib/check/check.py index 742163d8..e571b1a2 100644 --- a/prowler/lib/check/check.py +++ b/prowler/lib/check/check.py @@ -341,7 +341,7 @@ def execute_checks( sys.exit() except Exception as error: logger.error( - f"{error.__class__.__name__}[{error.__traceback__.tb_lineno}]: {error}" + f"{check_name} - {error.__class__.__name__}[{error.__traceback__.tb_lineno}]: {error}" ) bar.title = f"-> {Fore.GREEN}Scan completed!{Style.RESET_ALL}" return all_findings diff --git a/util/cloud9-installation.sh b/util/cloud9-installation.sh index 6bd88b14..a45f28cf 100644 --- a/util/cloud9-installation.sh +++ b/util/cloud9-installation.sh @@ -14,6 +14,4 @@ cd ~/environment/ || exit # Prepare Prowler 3.0 git clone https://github.com/prowler-cloud/prowler cd prowler || exit -git checkout prowler-3.0-dev -sudo pip3 install pipenv detect-secrets==1.0.3 pipenv install && pipenv shell