mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-27 15:16:43 -06:00
clarify logging when an inbox job is skipped or fails
This commit is contained in:
parent
18e77cc2e9
commit
634255ea9c
1 changed files with 5 additions and 1 deletions
|
@ -221,7 +221,11 @@ export class InboxProcessorService implements OnApplicationShutdown {
|
|||
try {
|
||||
const result = await this.apInboxService.performActivity(authUser.user, activity);
|
||||
if (result && !result.startsWith('ok')) {
|
||||
this.logger.warn(`inbox activity ignored (maybe): id=${activity.id} reason=${result}`);
|
||||
if (result.startsWith('skip:')) {
|
||||
this.logger.info(`inbox activity ignored: id=${activity.id} reason=${result}`);
|
||||
} else {
|
||||
this.logger.warn(`inbox activity failed: id=${activity.id} reason=${result}`);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue