diff options
Diffstat (limited to 'client/src/standalone/videos/shared/video-fetcher.ts')
-rw-r--r-- | client/src/standalone/videos/shared/video-fetcher.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/standalone/videos/shared/video-fetcher.ts b/client/src/standalone/videos/shared/video-fetcher.ts index e78d38536..b42d622f9 100644 --- a/client/src/standalone/videos/shared/video-fetcher.ts +++ b/client/src/standalone/videos/shared/video-fetcher.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { HttpStatusCode, LiveVideo, VideoDetails } from '../../../../../shared/models' | 1 | import { HttpStatusCode, LiveVideo, VideoDetails } from '../../../../../shared/models' |
2 | import { logger } from '../../../root-helpers' | ||
2 | import { AuthHTTP } from './auth-http' | 3 | import { AuthHTTP } from './auth-http' |
3 | 4 | ||
4 | export class VideoFetcher { | 5 | export class VideoFetcher { |
@@ -17,7 +18,7 @@ export class VideoFetcher { | |||
17 | videoResponse = await videoPromise | 18 | videoResponse = await videoPromise |
18 | isResponseOk = videoResponse.status === HttpStatusCode.OK_200 | 19 | isResponseOk = videoResponse.status === HttpStatusCode.OK_200 |
19 | } catch (err) { | 20 | } catch (err) { |
20 | console.error(err) | 21 | logger.error(err) |
21 | 22 | ||
22 | isResponseOk = false | 23 | isResponseOk = false |
23 | } | 24 | } |