diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-15 15:30:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:37:18 +0200 |
commit | 42b40636991b97fe818007fab19091764fc5db73 (patch) | |
tree | db431787c06ce898d22e91ff771f795219274fc6 /client/src/app/shared/shared-video-playlist/video-playlist.service.ts | |
parent | 654d4ede7fa4d0faa71e49bcfab6b65a686397b2 (diff) | |
download | PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.gz PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.zst PeerTube-42b40636991b97fe818007fab19091764fc5db73.zip |
Add ability for client to create server logs
Diffstat (limited to 'client/src/app/shared/shared-video-playlist/video-playlist.service.ts')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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' | |||
23 | import { VideoPlaylistElement } from './video-playlist-element.model' | 23 | import { VideoPlaylistElement } from './video-playlist-element.model' |
24 | import { VideoPlaylist } from './video-playlist.model' | 24 | import { VideoPlaylist } from './video-playlist.model' |
25 | 25 | ||
26 | const logger = debug('peertube:playlists:VideoPlaylistService') | 26 | const debugLogger = debug('peertube:playlists:VideoPlaylistService') |
27 | 27 | ||
28 | export type CachedPlaylist = VideoPlaylist | { id: number, displayName: string } | 28 | export type CachedPlaylist = VideoPlaylist | { id: number, displayName: string } |
29 | 29 | ||
@@ -287,15 +287,15 @@ export class VideoPlaylistService { | |||
287 | } | 287 | } |
288 | 288 | ||
289 | runPlaylistCheck (videoId: number) { | 289 | runPlaylistCheck (videoId: number) { |
290 | logger('Running playlist check.') | 290 | debugLogger('Running playlist check.') |
291 | 291 | ||
292 | if (this.videoExistsCache[videoId]) { | 292 | if (this.videoExistsCache[videoId]) { |
293 | logger('Found cache for %d.', videoId) | 293 | debugLogger('Found cache for %d.', videoId) |
294 | 294 | ||
295 | return this.videoExistsInPlaylistCacheSubject.next({ [videoId]: this.videoExistsCache[videoId] }) | 295 | return this.videoExistsInPlaylistCacheSubject.next({ [videoId]: this.videoExistsCache[videoId] }) |
296 | } | 296 | } |
297 | 297 | ||
298 | logger('Fetching from network for %d.', videoId) | 298 | debugLogger('Fetching from network for %d.', videoId) |
299 | return this.videoExistsInPlaylistNotifier.next(videoId) | 299 | return this.videoExistsInPlaylistNotifier.next(videoId) |
300 | } | 300 | } |
301 | 301 | ||