refactor: migrate to winston and enable daily rotated app logs (#71)

This commit is contained in:
vin authored and GitHub committed 2026-02-06 21:10:54 +08:00
1 parent ed94abf0d6
commit 2ae2216f1e
17 files changed
+414 -92

No files matched your search

+2 -2
View File
@@ -55,7 +55,7 @@ function logPacket(data: any) {
);
} catch (e) {
if (e instanceof Error) {
console.error(e.message);
logger.error('Failed to append ORPC packet log', e);
}
}
}
@@ -315,7 +315,7 @@ async function setupORPC() {
logPacket(data);
} catch (e) {
console.log('[RAW ORPC MSG] (unparseable)', msgEvent.data);
logger.debug('[RAW ORPC MSG] (unparseable)', msgEvent.data);
}
});