aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2022-12-29 09:35:41 +0200
committerGitHub <noreply@github.com>2022-12-29 08:35:41 +0100
commit1f3198444f9c839508876870cb3f7feecc1b3108 (patch)
tree017338d4d076551bc8372321fed393e5c4035f44 /client/src
parent4afc70239d62b3e033c0bb42153a39ed7dbe0106 (diff)
downloadPeerTube-1f3198444f9c839508876870cb3f7feecc1b3108.tar.gz
PeerTube-1f3198444f9c839508876870cb3f7feecc1b3108.tar.zst
PeerTube-1f3198444f9c839508876870cb3f7feecc1b3108.zip
Log HLS fatal error with error label (#5484)
* fix(client/p2p-media-loader): logg err upon fatal * feat(client/p2p-media-loader): err log currentTime
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
index a14beb347..7f7d90ab9 100644
--- a/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
+++ b/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
@@ -281,8 +281,8 @@ class Html5Hlsjs {
281 if (this.errorCounts[data.type]) this.errorCounts[data.type] += 1 281 if (this.errorCounts[data.type]) this.errorCounts[data.type] += 1
282 else this.errorCounts[data.type] = 1 282 else this.errorCounts[data.type] = 1
283 283
284 if (data.fatal) logger.warn(error.message) 284 if (data.fatal) logger.error(error.message, { currentTime: this.player.currentTime(), data })
285 else logger.error(error.message, { data }) 285 else logger.warn(error.message)
286 286
287 if (data.type === Hlsjs.ErrorTypes.NETWORK_ERROR) { 287 if (data.type === Hlsjs.ErrorTypes.NETWORK_ERROR) {
288 error.code = 2 288 error.code = 2