Refactor file deletion logging in LocalStorageService
This commit is contained in:
parent
0d78027680
commit
f7f96ad13b
1 changed files with 3 additions and 1 deletions
|
|
@ -89,7 +89,9 @@ class LocalStorageService(StorageService):
|
|||
file_path.unlink()
|
||||
logger.info(f"File {file_name} deleted successfully from flow {flow_id}.")
|
||||
else:
|
||||
logger.warning(f"Attempted to delete non-existent file {file_name} in flow {flow_id}.")
|
||||
logger.warning(
|
||||
f"Attempted to delete non-existent file {file_name} in flow {flow_id}."
|
||||
)
|
||||
|
||||
def teardown(self):
|
||||
"""Perform any cleanup operations when the service is being torn down."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue