chore(server): print stack in case of worker error (#15632)

feat: show error stack
This commit is contained in:
Jonathan Jogenfors 2025-01-25 04:45:55 +01:00 committed by GitHub
parent 72fa31f9e9
commit 10e518db42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ if (immichApp) {
let apiProcess: ChildProcess | undefined; let apiProcess: ChildProcess | undefined;
const onError = (name: string, error: Error) => { const onError = (name: string, error: Error) => {
console.error(`${name} worker error: ${error}`); console.error(`${name} worker error: ${error}, stack: ${error.stack}`);
}; };
const onExit = (name: string, exitCode: number | null) => { const onExit = (name: string, exitCode: number | null) => {