diff options
Diffstat (limited to 'server/lib/video-views.ts')
-rw-r--r-- | server/lib/video-views.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
1 | import { isTestInstance } from '@server/helpers/core-utils' | ||
1 | import { logger, loggerTagsFactory } from '@server/helpers/logger' | 2 | import { logger, loggerTagsFactory } from '@server/helpers/logger' |
2 | import { VIEW_LIFETIME } from '@server/initializers/constants' | 3 | import { VIEW_LIFETIME } from '@server/initializers/constants' |
3 | import { VideoModel } from '@server/models/video/video' | 4 | import { VideoModel } from '@server/models/video/video' |
@@ -98,7 +99,7 @@ export class VideoViews { | |||
98 | } | 99 | } |
99 | 100 | ||
100 | private async cleanViewers () { | 101 | private async cleanViewers () { |
101 | logger.info('Cleaning video viewers.', lTags()) | 102 | if (!isTestInstance()) logger.info('Cleaning video viewers.', lTags()) |
102 | 103 | ||
103 | for (const videoId of this.viewersPerVideo.keys()) { | 104 | for (const videoId of this.viewersPerVideo.keys()) { |
104 | const notBefore = new Date().getTime() | 105 | const notBefore = new Date().getTime() |