Skip to content

Commit

Permalink
[validate-deleted-files-hook] - add logging setup
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyAfik committed Feb 29, 2024
1 parent bfcbde5 commit cd71ff5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demisto_sdk/scripts/validate_deleted_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from demisto_sdk.commands.common.files.errors import FileReadError
from demisto_sdk.commands.common.files.file import File
from demisto_sdk.commands.common.git_util import GitUtil
from demisto_sdk.commands.common.logger import logger
from demisto_sdk.commands.common.logger import logger, logging_setup
from demisto_sdk.commands.common.tools import find_type


Expand Down Expand Up @@ -86,6 +86,7 @@ def validate_forbidden_deleted_files(
help="a protected dir to to disallow deleting files from it or from it sub-directories",
),
):
logging_setup()
if not protected_dirs:
raise ValueError("--protected-dir must be provided")
try:
Expand Down

0 comments on commit cd71ff5

Please sign in to comment.