diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-04 10:53:35 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-06-06 22:20:16 -0400 |
| commit | bcd9f1247ecdb5616ba96bfd74c5e8a3d9a6345b (patch) | |
| tree | a6aeeac250a4e7d6861498bb1c33ed0155e9fe26 /packages/backend/src/queue/QueueProcessorService.ts | |
| parent | record details of recursive proxy rejections (diff) | |
| download | sharkey-bcd9f1247ecdb5616ba96bfd74c5e8a3d9a6345b.tar.gz sharkey-bcd9f1247ecdb5616ba96bfd74c5e8a3d9a6345b.tar.bz2 sharkey-bcd9f1247ecdb5616ba96bfd74c5e8a3d9a6345b.zip | |
minimize logs from node-fetch FetchErrors
Diffstat (limited to 'packages/backend/src/queue/QueueProcessorService.ts')
| -rw-r--r-- | packages/backend/src/queue/QueueProcessorService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/queue/QueueProcessorService.ts b/packages/backend/src/queue/QueueProcessorService.ts index 341469e4e2..c829106b67 100644 --- a/packages/backend/src/queue/QueueProcessorService.ts +++ b/packages/backend/src/queue/QueueProcessorService.ts @@ -6,7 +6,7 @@ import { Inject, Injectable, OnApplicationShutdown } from '@nestjs/common'; import * as Bull from 'bullmq'; import * as Sentry from '@sentry/node'; -import { AbortError } from 'node-fetch'; +import { AbortError, FetchError } from 'node-fetch'; import type { Config } from '@/config.js'; import { DI } from '@/di-symbols.js'; import type Logger from '@/logger.js'; @@ -141,7 +141,7 @@ export class QueueProcessorService implements OnApplicationShutdown { // 何故かeがundefinedで来ることがある if (!e) return '?'; - if (e instanceof Bull.UnrecoverableError || e instanceof AbortError || e.name === 'AbortError' || e instanceof StatusError || e instanceof IdentifiableError) { + if (e instanceof Bull.UnrecoverableError || e instanceof AbortError || e.name === 'AbortError' || e instanceof FetchError || e.name === 'FetchError' || e instanceof StatusError || e instanceof IdentifiableError || e instanceof FetchError) { return renderInlineError(e); } |