Skip to content

Commit 0ce1d9a

Browse files
committed
Add logging
1 parent 72e9520 commit 0ce1d9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/onyx/file_store/file_store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ def _get_s3_key(self, file_name: str) -> str:
222222
if len(file_name) < max_file_name_length:
223223
return "/".join(prefix_and_tenant_parts + [file_name])
224224

225+
logger.info(f"File name is too long: {file_name}. Truncating.")
226+
225227
# For long file names, use a hash-based approach to ensure uniqueness
226228
file_hash = hashlib.sha256(file_name.encode("utf-8")).hexdigest()
227229
# Use first part of original name + hash to maintain some readability

0 commit comments

Comments
 (0)