From 42b40636991b97fe818007fab19091764fc5db73 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Jul 2022 15:30:14 +0200 Subject: Add ability for client to create server logs --- .../app/shared/shared-video-playlist/video-playlist.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/shared/shared-video-playlist/video-playlist.service.ts') diff --git a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts index db9f78a7a..81ae0f292 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts @@ -23,7 +23,7 @@ import { environment } from '../../../environments/environment' import { VideoPlaylistElement } from './video-playlist-element.model' import { VideoPlaylist } from './video-playlist.model' -const logger = debug('peertube:playlists:VideoPlaylistService') +const debugLogger = debug('peertube:playlists:VideoPlaylistService') export type CachedPlaylist = VideoPlaylist | { id: number, displayName: string } @@ -287,15 +287,15 @@ export class VideoPlaylistService { } runPlaylistCheck (videoId: number) { - logger('Running playlist check.') + debugLogger('Running playlist check.') if (this.videoExistsCache[videoId]) { - logger('Found cache for %d.', videoId) + debugLogger('Found cache for %d.', videoId) return this.videoExistsInPlaylistCacheSubject.next({ [videoId]: this.videoExistsCache[videoId] }) } - logger('Fetching from network for %d.', videoId) + debugLogger('Fetching from network for %d.', videoId) return this.videoExistsInPlaylistNotifier.next(videoId) } -- cgit v1.2.3