server: AbortError at lower log level
Some checks failed
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline failed
Some checks failed
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline failed
AbortErrors happen when a connection times out, which is a quite common occurrence and not worthy of a warning level log message.
This commit is contained in:
parent
aac1c40657
commit
c504091c61
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,11 @@ deliverQueue
|
|||
await deletionRefCount(job);
|
||||
})
|
||||
.on('failed', async (job, err) => {
|
||||
deliverLogger.warn(`failed(${err}) ${getJobInfo(job)} to=${job.data.to}`);
|
||||
if (err.type === 'aborted') {
|
||||
deliverLogger.debug(`failed(${err}) ${getJobInfo(job)} to=${job.data.to}`);
|
||||
} else {
|
||||
deliverLogger.warn(`failed(${err}) ${getJobInfo(job)} to=${job.data.to}`);
|
||||
}
|
||||
|
||||
if (job.attemptsMade >= (job.opts?.attempts ?? 1)) {
|
||||
// this was the last attempt
|
||||
|
|
Loading…
Reference in a new issue