diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-30 17:02:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-30 17:02:40 +0200 |
commit | 8e0fd45e14993793c64e06682a4a05c29068d398 (patch) | |
tree | 4567d24150f1c633181095e755d3291c4b32cead /server/lib/activitypub/send/send-update.ts | |
parent | 43c4c63937b63ed1f41b17f4cc8fe652a6d010fc (diff) | |
download | PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.gz PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.zst PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.zip |
Add more info logging
Diffstat (limited to 'server/lib/activitypub/send/send-update.ts')
-rw-r--r-- | server/lib/activitypub/send/send-update.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/activitypub/send/send-update.ts b/server/lib/activitypub/send/send-update.ts index 2fd374ec6..17d4f185c 100644 --- a/server/lib/activitypub/send/send-update.ts +++ b/server/lib/activitypub/send/send-update.ts | |||
@@ -9,8 +9,11 @@ import { VideoShareModel } from '../../../models/video/video-share' | |||
9 | import { getUpdateActivityPubUrl } from '../url' | 9 | import { getUpdateActivityPubUrl } from '../url' |
10 | import { broadcastToFollowers } from './utils' | 10 | import { broadcastToFollowers } from './utils' |
11 | import { audiencify, getAudience } from '../audience' | 11 | import { audiencify, getAudience } from '../audience' |
12 | import { logger } from '../../../helpers/logger' | ||
12 | 13 | ||
13 | async function sendUpdateVideo (video: VideoModel, t: Transaction) { | 14 | async function sendUpdateVideo (video: VideoModel, t: Transaction) { |
15 | logger.info('Creating job to update video %s.', video.url) | ||
16 | |||
14 | const byActor = video.VideoChannel.Account.Actor | 17 | const byActor = video.VideoChannel.Account.Actor |
15 | 18 | ||
16 | const url = getUpdateActivityPubUrl(video.url, video.updatedAt.toISOString()) | 19 | const url = getUpdateActivityPubUrl(video.url, video.updatedAt.toISOString()) |
@@ -28,6 +31,8 @@ async function sendUpdateVideo (video: VideoModel, t: Transaction) { | |||
28 | async function sendUpdateActor (accountOrChannel: AccountModel | VideoChannelModel, t: Transaction) { | 31 | async function sendUpdateActor (accountOrChannel: AccountModel | VideoChannelModel, t: Transaction) { |
29 | const byActor = accountOrChannel.Actor | 32 | const byActor = accountOrChannel.Actor |
30 | 33 | ||
34 | logger.info('Creating job to update actor %s.', byActor.url) | ||
35 | |||
31 | const url = getUpdateActivityPubUrl(byActor.url, byActor.updatedAt.toISOString()) | 36 | const url = getUpdateActivityPubUrl(byActor.url, byActor.updatedAt.toISOString()) |
32 | const accountOrChannelObject = accountOrChannel.toActivityPubObject() | 37 | const accountOrChannelObject = accountOrChannel.toActivityPubObject() |
33 | const audience = getAudience(byActor) | 38 | const audience = getAudience(byActor) |