From 3455c2656e257ae3d9b4169af58b6889d9904148 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Nov 2021 11:17:52 +0100 Subject: Test and log request retries --- server/lib/video-views.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/lib') diff --git a/server/lib/video-views.ts b/server/lib/video-views.ts index 220b509c2..c024eb93c 100644 --- a/server/lib/video-views.ts +++ b/server/lib/video-views.ts @@ -1,3 +1,4 @@ +import { isTestInstance } from '@server/helpers/core-utils' import { logger, loggerTagsFactory } from '@server/helpers/logger' import { VIEW_LIFETIME } from '@server/initializers/constants' import { VideoModel } from '@server/models/video/video' @@ -98,7 +99,7 @@ export class VideoViews { } private async cleanViewers () { - logger.info('Cleaning video viewers.', lTags()) + if (!isTestInstance()) logger.info('Cleaning video viewers.', lTags()) for (const videoId of this.viewersPerVideo.keys()) { const notBefore = new Date().getTime() -- cgit v1.2.3