Skip to content

Commit 8b6491a

Browse files
committed
Change an error message's log level from WARNING to ERROR.
1 parent 83a8bf3 commit 8b6491a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

relink.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,9 @@ def handle_non_dir(var, user_uid, inputdata_root):
111111
TypeError: If var is not a DirEntry-like object.
112112
ValueError: If the file path is not under inputdata_root.
113113
"""
114-
logger.debug("starting handle_non_dir()")
115114

116115
# Handle a variable of type str.
117116
if isinstance(var, str):
118-
logger.debug("isinstance(var, str)")
119117
file_path = _handle_non_dir_str(var, user_uid)
120118

121119
# Handle a variable of type like os.DirEntry.
@@ -184,7 +182,7 @@ def find_owned_files_scandir(item, user_uid, inputdata_root=DEFAULT_SOURCE_ROOT)
184182
yield file_path
185183

186184
except (OSError, PermissionError) as e:
187-
logger.warning("Error accessing %s: %s. Skipping.", item, e)
185+
logger.error("Error accessing %s: %s. Skipping.", item, e)
188186

189187

190188
def replace_files_with_symlinks(

0 commit comments

Comments
 (0)