fix(syncing-server): error message
This commit is contained in:
parent
2bddd947ba
commit
e253825da6
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@ export class CheckForTrafficAbuse implements UseCaseInterface<MetricsSummary> {
|
|||
})
|
||||
|
||||
if (metricsSummary.sum > dto.threshold) {
|
||||
return Result.fail(`Traffic abuse detected for metric: ${metricToCheck.props.name}`)
|
||||
return Result.fail(
|
||||
`Traffic abuse detected for metric: ${metricToCheck.props.name}. Usage ${metricsSummary.sum} is greater than threshold ${dto.threshold}`,
|
||||
)
|
||||
}
|
||||
|
||||
return Result.ok(metricsSummary)
|
||||
|
|
Loading…
Reference in a new issue