fix(syncing-server): metadata in logs
This commit is contained in:
parent
1f4b26d269
commit
02f4d5c717
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ export class CheckForTrafficAbuse implements UseCaseInterface<MetricsSummary> {
|
|||
async execute(dto: CheckForTrafficAbuseDTO): Promise<Result<MetricsSummary>> {
|
||||
this.logger.debug(`Checking for traffic abuse for metric: ${dto.metricToCheck}.`, {
|
||||
codeTag: 'CheckForTrafficAbuse',
|
||||
userUuid: dto.userUuid,
|
||||
userId: dto.userUuid,
|
||||
})
|
||||
|
||||
const userUuidOrError = Uuid.create(dto.userUuid)
|
||||
|
@ -46,7 +46,7 @@ export class CheckForTrafficAbuse implements UseCaseInterface<MetricsSummary> {
|
|||
`Current traffic abuse metric ${dto.metricToCheck} value in timeframe of ${dto.timeframeLengthInMinutes} minutes is ${metricsSummary.sum}. The threshold is ${dto.threshold}`,
|
||||
{
|
||||
codeTag: 'CheckForTrafficAbuse',
|
||||
userUuid: dto.userUuid,
|
||||
userId: dto.userUuid,
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue