Skip to content

Commit 43c6687

Browse files
committed
Change logger level about excluding git file
1 parent 67c4ae1 commit 43c6687

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/fosslight_prechecker/_precheck.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def exclude_untracked_files(path):
4545
cmd_result = [file.replace(path, '', 1) for file in cmd_result]
4646
DEFAULT_EXCLUDE_EXTENSION_FILES.extend(cmd_result)
4747
except Exception as ex:
48-
logger.error(f"Error to get git untracked files : {ex}")
48+
logger.warning(f"Error to get git untracked files : {ex}")
4949

5050

5151
def exclude_gitignore_files(current_path, path):
@@ -66,9 +66,8 @@ def exclude_gitignore_files(current_path, path):
6666
DEFAULT_EXCLUDE_EXTENSION_FILES.extend(cmd_result)
6767
else:
6868
return
69-
7069
except Exception as ex:
71-
logger.error(f"Error to get git ignored files : {ex}")
70+
logger.warning(f"Error to get git ignored files : {ex}")
7271

7372

7473
def exclude_git_related_files(path):
@@ -85,7 +84,7 @@ def exclude_git_related_files(path):
8584
# Restore path
8685
os.chdir(current_path)
8786
except Exception as ex:
88-
logger.error(f"Error to get git related files : {ex}")
87+
logger.warning(f"Error to get git related files : {ex}")
8988

9089

9190
def find_oss_pkg_info_and_exlcude_file(path):

0 commit comments

Comments
 (0)