diff --git a/app/api/routes/node_storage.py b/app/api/routes/node_storage.py index 0381404..920fe9c 100644 --- a/app/api/routes/node_storage.py +++ b/app/api/routes/node_storage.py @@ -98,9 +98,10 @@ async def s_api_v1_storage_get(request, file_hash=None): if not content: return response.json({"error": "File not found"}, status=404) - make_log("Storage", f"File {content_sha256} requested by {request.ip}") + make_log("Storage", f"File {content_sha256} requested by {request.ctx.user}") file_path = os.path.join(UPLOADS_DIR, content_sha256) if not os.path.exists(file_path): + make_log("Storage", f"File {content_sha256} not found locally", level="error") return response.json({"error": "File not found"}, status=404) return await response.file(file_path)