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-delete.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-delete.ts')
-rw-r--r-- | server/lib/activitypub/send/send-delete.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/lib/activitypub/send/send-delete.ts b/server/lib/activitypub/send/send-delete.ts index e9a8951b5..3d1dfb699 100644 --- a/server/lib/activitypub/send/send-delete.ts +++ b/server/lib/activitypub/send/send-delete.ts | |||
@@ -7,8 +7,11 @@ import { VideoShareModel } from '../../../models/video/video-share' | |||
7 | import { getDeleteActivityPubUrl } from '../url' | 7 | import { getDeleteActivityPubUrl } from '../url' |
8 | import { broadcastToActors, broadcastToFollowers, unicastTo } from './utils' | 8 | import { broadcastToActors, broadcastToFollowers, unicastTo } from './utils' |
9 | import { audiencify, getActorsInvolvedInVideo, getVideoCommentAudience } from '../audience' | 9 | import { audiencify, getActorsInvolvedInVideo, getVideoCommentAudience } from '../audience' |
10 | import { logger } from '../../../helpers/logger' | ||
10 | 11 | ||
11 | async function sendDeleteVideo (video: VideoModel, t: Transaction) { | 12 | async function sendDeleteVideo (video: VideoModel, t: Transaction) { |
13 | logger.info('Creating job to broadcast delete of video %s.', video.url) | ||
14 | |||
12 | const url = getDeleteActivityPubUrl(video.url) | 15 | const url = getDeleteActivityPubUrl(video.url) |
13 | const byActor = video.VideoChannel.Account.Actor | 16 | const byActor = video.VideoChannel.Account.Actor |
14 | 17 | ||
@@ -21,6 +24,8 @@ async function sendDeleteVideo (video: VideoModel, t: Transaction) { | |||
21 | } | 24 | } |
22 | 25 | ||
23 | async function sendDeleteActor (byActor: ActorModel, t: Transaction) { | 26 | async function sendDeleteActor (byActor: ActorModel, t: Transaction) { |
27 | logger.info('Creating job to broadcast delete of actor %s.', byActor.url) | ||
28 | |||
24 | const url = getDeleteActivityPubUrl(byActor.url) | 29 | const url = getDeleteActivityPubUrl(byActor.url) |
25 | const data = deleteActivityData(url, byActor.url, byActor) | 30 | const data = deleteActivityData(url, byActor.url, byActor) |
26 | 31 | ||
@@ -31,6 +36,8 @@ async function sendDeleteActor (byActor: ActorModel, t: Transaction) { | |||
31 | } | 36 | } |
32 | 37 | ||
33 | async function sendDeleteVideoComment (videoComment: VideoCommentModel, t: Transaction) { | 38 | async function sendDeleteVideoComment (videoComment: VideoCommentModel, t: Transaction) { |
39 | logger.info('Creating job to send delete of comment %s.', videoComment.url) | ||
40 | |||
34 | const isVideoOrigin = videoComment.Video.isOwned() | 41 | const isVideoOrigin = videoComment.Video.isOwned() |
35 | 42 | ||
36 | const url = getDeleteActivityPubUrl(videoComment.url) | 43 | const url = getDeleteActivityPubUrl(videoComment.url) |