mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
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:
@@ -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/
|
||||
|
||||
@@ -64,7 +64,6 @@ export const handler: Handlers = {
|
||||
socket.onerror = () => {
|
||||
removeListener();
|
||||
clearInterval(interval);
|
||||
logger.error("WebSocket error.");
|
||||
};
|
||||
socket.onmessage = (e) => {
|
||||
try {
|
||||
|
||||
@@ -291,7 +291,7 @@ export async function download_task(
|
||||
}
|
||||
}
|
||||
}
|
||||
logger.log("Already download page", i.index);
|
||||
logger.debug("Already download page", i.index);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user