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) {
return cb(errors.InternalError.customizeDescription(
'Utapi is in a transient state for this time period as '
+ 'metrics are being collected. Please try again in a few '
+ 'minutes.',
));
log.info('negative metric value found', {
error: resource,
method: 'ListMetrics.getMetrics',
});
}
/**
* Batch result is of the format