remove file proxy logs
This commit is contained in:
@@ -13,13 +13,6 @@ export const Route = createFileRoute(
|
||||
process.env.POCKETBASE_URL || "http://127.0.0.1:8090";
|
||||
const fileUrl = `${pocketbaseUrl}/api/files/${collection}/${recordId}/${file}`;
|
||||
|
||||
logger.info("File proxy", {
|
||||
collection,
|
||||
recordId,
|
||||
file,
|
||||
targetUrl: fileUrl,
|
||||
});
|
||||
|
||||
const response = await fetch(fileUrl, {
|
||||
method: "GET",
|
||||
headers: {
|
||||
@@ -81,12 +74,6 @@ export const Route = createFileRoute(
|
||||
"Range, If-None-Match, If-Modified-Since"
|
||||
);
|
||||
|
||||
logger.info("File proxy response", {
|
||||
status: response.status,
|
||||
contentType: response.headers.get("content-type"),
|
||||
contentLength: response.headers.get("content-length"),
|
||||
});
|
||||
|
||||
return new Response(body, {
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
|
||||
Reference in New Issue
Block a user