refactor: Remove redundant CSS copy in Dockerfile and clean up WebSocket error logging

chore: Change log level for already downloaded pages to debug
This commit is contained in:
2025-01-09 08:12:53 +08:00
parent 3f91216bd8
commit 3449a0b097
3 changed files with 1 additions and 3 deletions

View File

@@ -113,7 +113,6 @@ COPY ./page ./page
COPY ./routes ./routes
COPY ./scripts ./scripts
COPY ./server ./server
COPY ./static/*.css ./static/
COPY ./static/*.ts ./static/
COPY ./static/*.ico ./static/
COPY ./static/*.svg ./static/

View File

@@ -64,7 +64,6 @@ export const handler: Handlers = {
socket.onerror = () => {
removeListener();
clearInterval(interval);
logger.error("WebSocket error.");
};
socket.onmessage = (e) => {
try {

View File

@@ -291,7 +291,7 @@ export async function download_task(
}
}
}
logger.log("Already download page", i.index);
logger.debug("Already download page", i.index);
return;
}
}