fix(xo-server/api): dont log pool.listMissingPatches & host.stats errors

Introduced by 9226c6cac
This commit is contained in:
Julien Fontanet 2021-04-09 10:44:35 +02:00
parent 42a43be092
commit eaecba7ec8
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
- [Backup] Fix `vm.refresh_snapshots is not a function` error
- [Backup] Fix `cannot read property "length" of undefined` when using _delete first_ [Forum post](https://xcp-ng.org/forum/topic/4440/error-on-delta-backup-cannot-read-property-length-of-undefined)
- [Delta backup] Fix merge task not under corresponding remote and missing merge size in summary [#5708](https://github.com/vatesfr/xen-orchestra/issues/5708)
- [Settings/Logs] Correctly hide `pool.listMissingPatches` and `host.stats` errors
### Packages to release

View File

@ -348,7 +348,7 @@ export default class Api {
// 2021-02-11: Work-around: ECONNREFUSED error can be triggered by
// 'host.stats' method because there is no connection to the host during a
// toolstack restart and xo-web may call it often
if (name !== 'pool.listMissingPatches' || name !== 'host.stats') {
if (name !== 'pool.listMissingPatches' && name !== 'host.stats') {
this._logger.error(message, {
...data,
duration: Date.now() - startTime,