fix(logs): add check_name to logs (#1574)

This commit is contained in:
Sergio Garcia
2022-12-22 11:48:44 +01:00
committed by GitHub
parent 65e72d6937
commit ea42a6274b
3 changed files with 1 additions and 9 deletions

View File

@@ -1,6 +0,0 @@
.git/
.github/
# Ignore output directories
output/
junit-reports/

View File

@@ -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

View File

@@ -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