aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-14 15:10:37 +0200
committerChocobozzz <me@florianbigard.com>2022-09-14 15:10:37 +0200
commit910744fb084499a110d26bf5542abebb8a750b19 (patch)
tree540f01e8a8983cdec0bf811291ec704a352673e3 /server/lib/schedulers/video-channel-sync-latest-scheduler.ts
parent638949c67a1fe6966909184880f0194ac6beb077 (diff)
downloadPeerTube-910744fb084499a110d26bf5542abebb8a750b19.tar.gz
PeerTube-910744fb084499a110d26bf5542abebb8a750b19.tar.zst
PeerTube-910744fb084499a110d26bf5542abebb8a750b19.zip
Improve VideoChannelSyncLatestScheduler logs
Diffstat (limited to 'server/lib/schedulers/video-channel-sync-latest-scheduler.ts')
-rw-r--r--server/lib/schedulers/video-channel-sync-latest-scheduler.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/schedulers/video-channel-sync-latest-scheduler.ts b/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
index 491ddaa87..a527f68b5 100644
--- a/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
+++ b/server/lib/schedulers/video-channel-sync-latest-scheduler.ts
@@ -16,13 +16,13 @@ export class VideoChannelSyncLatestScheduler extends AbstractScheduler {
16 } 16 }
17 17
18 protected async internalExecute () { 18 protected async internalExecute () {
19 logger.debug('Running %s.%s', this.constructor.name, this.internalExecute.name)
20
21 if (!CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.ENABLED) { 19 if (!CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.ENABLED) {
22 logger.info('Discard channels synchronization as the feature is disabled') 20 logger.debug('Discard channels synchronization as the feature is disabled')
23 return 21 return
24 } 22 }
25 23
24 logger.info('Checking channels to synchronize')
25
26 const channelSyncs = await VideoChannelSyncModel.listSyncs() 26 const channelSyncs = await VideoChannelSyncModel.listSyncs()
27 27
28 for (const sync of channelSyncs) { 28 for (const sync of channelSyncs) {