mirror of https://github.com/Chocobozzz/PeerTube
Still warn on metrics issue but only the client
parent
e7e7eca508
commit
f2887d29b8
|
@ -131,7 +131,7 @@ class MetricsPlugin extends Plugin {
|
||||||
const headers = new Headers({ 'Content-type': 'application/json; charset=UTF-8' })
|
const headers = new Headers({ 'Content-type': 'application/json; charset=UTF-8' })
|
||||||
|
|
||||||
return fetch(this.options_.metricsUrl(), { method: 'POST', body: JSON.stringify(body), headers })
|
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())
|
}, this.options_.metricsInterval())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue