fix(syncing-server): metadata in logs

This commit is contained in:
Karol Sójko 2024-01-05 12:22:28 +01:00
parent 1f4b26d269
commit 02f4d5c717
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -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,
},
)