Skip to content

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

Decrease send metrics client log level

Chocobozzz713e489de4a1
diff --git a/client/src/assets/player/shared/metrics/metrics-plugin.ts b/client/src/assets/player/shared/metrics/metrics-plugin.ts
index 56c56c341d..7b58cb77d0 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.error('Cannot send metrics to the server.', err))
+ .catch(err => logger.warn('Cannot send metrics to the server.', err))
}, this.options_.metricsInterval())
}