diff options
| author | kamtschatka <simon.schatka@gmx.at> | 2024-09-26 23:39:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 22:39:21 +0100 |
| commit | 7cc2f8b3d4afbee28e6f7e19c086077873bc7a2f (patch) | |
| tree | 3067c31793ce5d20716a6f4e07018566fdeb8f88 /apps/workers/openaiWorker.ts | |
| parent | 4db50c234fb0da8747b902a7c1e551cc54451f4c (diff) | |
| download | karakeep-7cc2f8b3d4afbee28e6f7e19c086077873bc7a2f.tar.zst | |
fix(workers): Log stacktrace on worker error. #424 (#429)
extended logging when an exception occurrs, so it is possible to see the stacktrace of a failed execution
Diffstat (limited to '')
| -rw-r--r-- | apps/workers/openaiWorker.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workers/openaiWorker.ts b/apps/workers/openaiWorker.ts index 8bd2cf4a..9b352811 100644 --- a/apps/workers/openaiWorker.ts +++ b/apps/workers/openaiWorker.ts @@ -73,7 +73,7 @@ export class OpenAiWorker { onError: async (job) => { const jobId = job?.id ?? "unknown"; logger.error( - `[inference][${jobId}] inference job failed: ${job.error}`, + `[inference][${jobId}] inference job failed: ${job.error}\n${job.error.stack}`, ); await attemptMarkTaggingStatus(job?.data, "failure"); }, |
