diff options
Diffstat (limited to 'client/src/assets/player/shared/stats')
-rw-r--r-- | client/src/assets/player/shared/stats/stats-card.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/assets/player/shared/stats/stats-card.ts b/client/src/assets/player/shared/stats/stats-card.ts index e9f9b6bd2..b65adcfca 100644 --- a/client/src/assets/player/shared/stats/stats-card.ts +++ b/client/src/assets/player/shared/stats/stats-card.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import videojs from 'video.js' | 1 | import videojs from 'video.js' |
2 | import { logger } from '@root-helpers/logger' | ||
2 | import { secondsToTime } from '@shared/core-utils' | 3 | import { secondsToTime } from '@shared/core-utils' |
3 | import { PlayerNetworkInfo as EventPlayerNetworkInfo } from '../../types' | 4 | import { PlayerNetworkInfo as EventPlayerNetworkInfo } from '../../types' |
4 | import { bytes } from '../common' | 5 | import { bytes } from '../common' |
@@ -125,7 +126,7 @@ class StatsCard extends Component { | |||
125 | 126 | ||
126 | this.populateInfoValues(options) | 127 | this.populateInfoValues(options) |
127 | } catch (err) { | 128 | } catch (err) { |
128 | console.error('Cannot update stats.', err) | 129 | logger.error('Cannot update stats.', err) |
129 | clearInterval(this.updateInterval) | 130 | clearInterval(this.updateInterval) |
130 | } | 131 | } |
131 | }, this.intervalMs) | 132 | }, this.intervalMs) |