mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-29 13:59:26 +01:00
clarify logging when an inbox job is skipped or fails
This commit is contained in:
parent
4708c0abef
commit
3f5ea11a1f
1 changed files with 5 additions and 1 deletions
|
@ -218,7 +218,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