Skip to content

Commit

Permalink
Fix logging in set relay families exceptions messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-toth committed Sep 9, 2024
1 parent 9c7bfe8 commit d6c28d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/distribution/distribution.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,11 @@ export class DistributionService {
}
}
} catch (error) {
const firstFingerprint = relaysWithFamilyUpdates.at(0)
const firstFingerprint =
relaysWithFamilyUpdates.at(0)?.fingerprint
const lastFingerprint = relaysWithFamilyUpdates.at(
relaysWithFamilyUpdates.length - 1
)
)?.fingerprint
this.logger.error(
`Exception setting relay families for`
+ ` ${relaysWithFamilyUpdates.length} relays`
Expand Down
5 changes: 3 additions & 2 deletions src/verification/verification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,11 @@ export class VerificationService {
}
}
} catch (error) {
const firstFingerprint = relaysWithFamilyUpdates.at(0)
const firstFingerprint =
relaysWithFamilyUpdates.at(0)?.fingerprint
const lastFingerprint = relaysWithFamilyUpdates.at(
relaysWithFamilyUpdates.length - 1
)
)?.fingerprint
this.logger.error(
`Exception setting relay families for`
+ ` ${relaysWithFamilyUpdates.length} relays`
Expand Down

0 comments on commit d6c28d4

Please sign in to comment.