Compare commits

...

1 Commits

Author SHA1 Message Date
scality-gelbart 772be08d1f
do not error 500 in case of negative metric 2022-11-04 15:57:51 +01:00
1 changed files with 4 additions and 5 deletions

View File

@ -313,11 +313,10 @@ class ListMetrics {
}); });
if (!areMetricsPositive) { if (!areMetricsPositive) {
return cb(errors.InternalError.customizeDescription( log.info('negative metric value found', {
'Utapi is in a transient state for this time period as ' error: resource,
+ 'metrics are being collected. Please try again in a few ' method: 'ListMetrics.getMetrics',
+ 'minutes.', });
));
} }
/** /**
* Batch result is of the format * Batch result is of the format