Improve VideoChannelSyncLatestScheduler logs

This commit is contained in:
Chocobozzz
2022-09-14 15:10:37 +02:00
parent 638949c67a
commit 910744fb08

View File

@@ -16,13 +16,13 @@ export class VideoChannelSyncLatestScheduler extends AbstractScheduler {
}
protected async internalExecute () {
logger.debug('Running %s.%s', this.constructor.name, this.internalExecute.name)
if (!CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.ENABLED) {
logger.info('Discard channels synchronization as the feature is disabled')
logger.debug('Discard channels synchronization as the feature is disabled')
return
}
logger.info('Checking channels to synchronize')
const channelSyncs = await VideoChannelSyncModel.listSyncs()
for (const sync of channelSyncs) {