]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/peertube-player-local-storage.ts
Add ability for client to create server logs
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / peertube-player-local-storage.ts
index d9dacfba533ef1efdea82df24de2df7eece4327d..64040abf1d5ae4736bf71144fc99e757e68744de 100644 (file)
@@ -1,3 +1,5 @@
+import { logger } from '@root-helpers/logger'
+
 function getStoredVolume () {
   const value = getLocalStorage('volume')
   if (value !== null && value !== undefined) {
@@ -81,7 +83,7 @@ function getStoredVideoWatchHistory (videoUUID?: string) {
 
     data = JSON.parse(value)
   } catch (error) {
-    console.error('Cannot parse video watch history from local storage: ', error)
+    logger.error('Cannot parse video watch history from local storage/', error)
   }
 
   data = data || {}