Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Still warn on metrics issue but only the client

Chocobozzzf2887d29b831
diff --git a/client/src/assets/player/shared/metrics/metrics-plugin.ts b/client/src/assets/player/shared/metrics/metrics-plugin.ts
index 9f436db314..15824f236e 100644
--- a/client/src/assets/player/shared/metrics/metrics-plugin.ts
+++ b/client/src/assets/player/shared/metrics/metrics-plugin.ts
@@ -131,7 +131,7 @@ class MetricsPlugin extends Plugin {
const headers = new Headers({ 'Content-type': 'application/json; charset=UTF-8' })
return fetch(this.options_.metricsUrl(), { method: 'POST', body: JSON.stringify(body), headers })
- .catch(err => logger.info('Cannot send metrics to the server.', err))
+ .catch(err => logger.clientWarn('Cannot send metrics to the server.', err))
}, this.options_.metricsInterval())
}