Skip to content

Commit

Permalink
Deletions are info not warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Dec 20, 2024
1 parent 4443815 commit b4cc121
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions librarian_server/stores/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def unstage(self, path: Path):
os.remove(complete_path)
except OSError:
# Directory is not empty. Delete it and all its contents.
logger.warning(
logger.info(
f"Directory {complete_path} is not empty. Deleting all contents"
)
shutil.rmtree(complete_path)
Expand Down Expand Up @@ -168,9 +168,9 @@ def delete(self, path: Path):
except OSError:
# Directory is not empty. Delete it and all its contents.
# Commenting out: currently not a warning
# logger.warning(
# f"Directory {complete_path} is not empty. Deleting all contents"
# )
logger.info(
f"Directory {complete_path} is not empty. Deleting all contents"
)
shutil.rmtree(complete_path)

# Check if the parent is empty. We don't want to leave dregs!
Expand Down

0 comments on commit b4cc121

Please sign in to comment.