Skip to content

Commit 2d6f3ad

Browse files
committed
'Skipping symlink' msg now debug-level.
1 parent 3f5e1b8 commit 2d6f3ad

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

relink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def find_owned_files_scandir(directory, user_uid):
6565

6666
# Skip symlinks
6767
elif entry.is_symlink():
68-
logger.info("Skipping symlink: %s", entry.path)
68+
logger.debug("Skipping symlink: %s", entry.path)
6969

7070
except (OSError, PermissionError) as e:
7171
logger.debug("Error accessing %s: %s. Skipping.", entry.path, e)

tests/relink/test_find_owned_files_scandir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def test_skip_symlinks(temp_dirs, caplog):
155155
os.symlink(dummy_target, symlink_path)
156156

157157
# Find owned files with logging
158-
with caplog.at_level(logging.INFO):
158+
with caplog.at_level(logging.DEBUG):
159159
found_files = list(relink.find_owned_files_scandir(source_dir, user_uid))
160160

161161
# Verify only regular file was found

tests/relink/test_replace_files_with_symlinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_skip_existing_symlinks(temp_dirs, current_user, caplog):
8888
stat_before = os.lstat(source_link)
8989

9090
# Run the function
91-
with caplog.at_level(logging.INFO):
91+
with caplog.at_level(logging.DEBUG):
9292
relink.replace_files_with_symlinks(source_dir, target_dir, username)
9393

9494
# Verify the symlink is unchanged (same inode means it wasn't deleted/recreated)

0 commit comments

Comments
 (0)