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/assets/player/peertube-player-manager.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/assets/player/peertube-player-manager.ts')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index b24b6966e..b9077dcae 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -23,6 +23,7 @@ import './shared/mobile/peertube-mobile-plugin' | |||
23 | import './shared/mobile/peertube-mobile-buttons' | 23 | import './shared/mobile/peertube-mobile-buttons' |
24 | import './shared/hotkeys/peertube-hotkeys-plugin' | 24 | import './shared/hotkeys/peertube-hotkeys-plugin' |
25 | import videojs from 'video.js' | 25 | import videojs from 'video.js' |
26 | import { logger } from '@root-helpers/logger' | ||
26 | import { PluginsManager } from '@root-helpers/plugins-manager' | 27 | import { PluginsManager } from '@root-helpers/plugins-manager' |
27 | import { isMobile } from '@root-helpers/web-browser' | 28 | import { isMobile } from '@root-helpers/web-browser' |
28 | import { saveAverageBandwidth } from './peertube-player-local-storage' | 29 | import { saveAverageBandwidth } from './peertube-player-local-storage' |
@@ -145,7 +146,7 @@ export class PeertubePlayerManager { | |||
145 | return | 146 | return |
146 | } | 147 | } |
147 | 148 | ||
148 | console.log('Fast forwarding HLS to recover from an error.') | 149 | logger.info('Fast forwarding HLS to recover from an error.') |
149 | 150 | ||
150 | this.videojsDecodeErrors++ | 151 | this.videojsDecodeErrors++ |
151 | 152 | ||
@@ -170,7 +171,7 @@ export class PeertubePlayerManager { | |||
170 | return | 171 | return |
171 | } | 172 | } |
172 | 173 | ||
173 | console.log('Fallback to webtorrent.') | 174 | logger.info('Fallback to webtorrent.') |
174 | 175 | ||
175 | this.rebuildAndUpdateVideoElement(currentPlayer, options.common) | 176 | this.rebuildAndUpdateVideoElement(currentPlayer, options.common) |
176 | 177 | ||