Resolve possible update memory leak.,

This commit is contained in:
Patrick FIc
2025-10-21 10:03:40 -07:00
parent 6674f33be9
commit bf1e137c6c
5 changed files with 38 additions and 8 deletions

View File

@@ -193,6 +193,11 @@ memLogger.transports.file.resolvePathFn = () => {
);
return filePath;
};
// Configure memory logger format to include process ID
memLogger.transports.file.format =
"[{y}-{m}-{d} {h}:{i}:{s}.{ms}] [{level}] [PID:{processId}] {text}";
memLogger.transports.console.format =
"[{y}-{m}-{d} {h}:{i}:{s}.{ms}] [{level}] [PID:{processId}] {text}";
export async function dumpMemoryStatsToFile() {
try {