summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-03-12 00:34:30 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-03-12 00:34:30 +0900
commit969435cfe9d070a33803dc1032f623b8c29931f6 (patch)
treeb25c137bab751b149731e18164cc65278bb3af4f /src/queue
parentResolve #1736 (diff)
parentlog failed job (#4472) (diff)
downloadsharkey-969435cfe9d070a33803dc1032f623b8c29931f6.tar.gz
sharkey-969435cfe9d070a33803dc1032f623b8c29931f6.tar.bz2
sharkey-969435cfe9d070a33803dc1032f623b8c29931f6.zip
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts
index 44b24b66cb..479b8defad 100644
--- a/src/queue/index.ts
+++ b/src/queue/index.ts
@@ -34,7 +34,7 @@ deliverQueue
.on('waiting', (jobId) => deliverLogger.debug(`waiting id=${jobId}`))
.on('active', (job) => deliverLogger.debug(`active id=${job.id} to=${job.data.to}`))
.on('completed', (job, result) => deliverLogger.debug(`completed(${result}) id=${job.id} to=${job.data.to}`))
- .on('failed', (job, err) => deliverLogger.debug(`failed(${err}) id=${job.id} to=${job.data.to}`))
+ .on('failed', (job, err) => deliverLogger.warn(`failed(${err}) id=${job.id} to=${job.data.to}`))
.on('error', (error) => deliverLogger.error(`error ${error}`))
.on('stalled', (job) => deliverLogger.warn(`stalled id=${job.id} to=${job.data.to}`));
@@ -42,9 +42,9 @@ inboxQueue
.on('waiting', (jobId) => inboxLogger.debug(`waiting id=${jobId}`))
.on('active', (job) => inboxLogger.debug(`active id=${job.id}`))
.on('completed', (job, result) => inboxLogger.debug(`completed(${result}) id=${job.id}`))
- .on('failed', (job, err) => inboxLogger.debug(`failed(${err}) id=${job.id}`))
+ .on('failed', (job, err) => inboxLogger.warn(`failed(${err}) id=${job.id} activity=${job.data.activity ? job.data.activity.id : 'none'}`))
.on('error', (error) => inboxLogger.error(`error ${error}`))
- .on('stalled', (job) => inboxLogger.warn(`stalled id=${job.id}`));
+ .on('stalled', (job) => inboxLogger.warn(`stalled id=${job.id} activity=${job.data.activity ? job.data.activity.id : 'none'}`));
export function deliver(user: ILocalUser, content: any, to: any) {
if (content == null) return null;