Skip to content

Commit 00f805a

Browse files
committed
remove file content log
1 parent 7b94b74 commit 00f805a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

functions-python/helpers/utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,10 @@ def download_and_get_hash(
134134
logger.error(e)
135135
if os.path.exists(file_path):
136136
try:
137-
with open(file_path, "r") as file:
138-
logger.error(f"File content: {file.read()}")
139-
except Exception as read_error:
140-
logger.error(f"Failed to read file content: {read_error}")
141-
os.remove(file_path)
137+
os.remove(file_path)
138+
except Exception:
139+
logger.error(f"Delete file: [{file_path}]")
140+
142141
raise e
143142

144143

0 commit comments

Comments
 (0)