aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-30 17:02:40 +0200
committerChocobozzz <me@florianbigard.com>2018-07-30 17:02:40 +0200
commit8e0fd45e14993793c64e06682a4a05c29068d398 (patch)
tree4567d24150f1c633181095e755d3291c4b32cead /server/models/video
parent43c4c63937b63ed1f41b17f4cc8fe652a6d010fc (diff)
downloadPeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.gz
PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.zst
PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.zip
Add more info logging
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-caption.ts2
-rw-r--r--server/models/video/video-channel.ts2
-rw-r--r--server/models/video/video.ts4
3 files changed, 2 insertions, 6 deletions
diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts
index 5a1becc47..4a25097f8 100644
--- a/server/models/video/video-caption.ts
+++ b/server/models/video/video-caption.ts
@@ -80,7 +80,7 @@ export class VideoCaptionModel extends Model<VideoCaptionModel> {
80 } 80 }
81 81
82 if (instance.isOwned()) { 82 if (instance.isOwned()) {
83 logger.debug('Removing captions %s of video %s.', instance.Video.uuid, instance.language) 83 logger.info('Removing captions %s of video %s.', instance.Video.uuid, instance.language)
84 84
85 try { 85 try {
86 await instance.removeCaptionFile() 86 await instance.removeCaptionFile()
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 6567b00d6..d0dba18d5 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -140,8 +140,6 @@ export class VideoChannelModel extends Model<VideoChannelModel> {
140 } 140 }
141 141
142 if (instance.Actor.isOwned()) { 142 if (instance.Actor.isOwned()) {
143 logger.debug('Sending delete of actor of video channel %s.', instance.Actor.url)
144
145 return sendDeleteActor(instance.Actor, options.transaction) 143 return sendDeleteActor(instance.Actor, options.transaction)
146 } 144 }
147 145
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 5808f3936..a6c4620b2 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -607,8 +607,6 @@ export class VideoModel extends Model<VideoModel> {
607 }) as VideoChannelModel 607 }) as VideoChannelModel
608 } 608 }
609 609
610 logger.debug('Sending delete of video %s.', instance.url)
611
612 return sendDeleteVideo(instance, options.transaction) 610 return sendDeleteVideo(instance, options.transaction)
613 } 611 }
614 612
@@ -619,7 +617,7 @@ export class VideoModel extends Model<VideoModel> {
619 static async removeFiles (instance: VideoModel) { 617 static async removeFiles (instance: VideoModel) {
620 const tasks: Promise<any>[] = [] 618 const tasks: Promise<any>[] = []
621 619
622 logger.debug('Removing files of video %s.', instance.url) 620 logger.info('Removing files of video %s.', instance.url)
623 621
624 tasks.push(instance.removeThumbnail()) 622 tasks.push(instance.removeThumbnail())
625 623