clarify logging when an inbox job is skipped or fails

This commit is contained in:
Hazelnoot 2024-11-03 10:47:27 -05:00 committed by fly_mc
parent 18e77cc2e9
commit 634255ea9c

View file

@ -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) {