From 0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Feb 2018 11:06:43 +0100 Subject: Add log when fetching the outbox --- server/controllers/activitypub/outbox.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/activitypub/outbox.ts b/server/controllers/activitypub/outbox.ts index c0c0c9d1c..0077e1d0b 100644 --- a/server/controllers/activitypub/outbox.ts +++ b/server/controllers/activitypub/outbox.ts @@ -3,6 +3,7 @@ import { Activity } from '../../../shared/models/activitypub/activity' import { VideoPrivacy } from '../../../shared/models/videos' import { activityPubCollectionPagination } from '../../helpers/activitypub' import { pageToStartAndCount } from '../../helpers/core-utils' +import { logger } from '../../helpers/logger' import { ACTIVITY_PUB } from '../../initializers/constants' import { announceActivityData, createActivityData } from '../../lib/activitypub/send' import { buildAudience } from '../../lib/activitypub/send/misc' @@ -65,7 +66,10 @@ async function outboxController (req: express.Request, res: express.Response, ne data: activities, total: data.total } - const json = activityPubCollectionPagination(account.Actor.url + '/outbox', page, newResult) + const actorOutboxUrl = account.Actor.url + '/outbox' + const json = activityPubCollectionPagination(actorOutboxUrl, page, newResult) + + logger.info('Receiving outbox request for %s.', actorOutboxUrl) return res.json(json).end() } -- cgit v1.2.3