Skip to content

biocred logger error() is deprecated, so make it a no-op#1245

Closed
phad wants to merge 1 commit into
mainfrom
DCMAW-18100_deprecate-biocred-logger-error
Closed

biocred logger error() is deprecated, so make it a no-op#1245
phad wants to merge 1 commit into
mainfrom
DCMAW-18100_deprecate-biocred-logger-error

Conversation

@phad

@phad phad commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Jira Ticket

DCMAW-18100

Description of changes

The biometric-credential library's Logger.error() method is due to be removed,
as it has an unintended consequence of causing double-logging, which inflates
error counts.

This PR makes the asyncIssueBiometricCredential lambda's implementation
of Logger.error() an empty, no-op method.

A follow-on PR will bump to the new version of biometric-credential (expected to
be v5.0.0) and will drop the method entirely.

Review guidance

Review checklist

Functional Review

  • Functionality: Does it meet the acceptance criteria on the ticket and work as expected?
  • Requirements: Does the code meet functional and non-functional requirements including compliance with programme standards and security gates?

Security & Compliance

  • Personally Identifiable Information: Is it possible for PII to be logged?
  • Security Considerations: Are there any security implications that need to be addressed?

Quality Assurance

  • Testing: Is the code well-tested with sufficient coverage to provide confidence in correctness?
  • Edge Cases: Have edge cases been considered and handled appropriately?

Code Quality

  • Readability: Is the code easy to understand for all team members, with clear naming and appropriate documentation?
  • Maintainability: Is the code easy to change, reuse, and extend?
  • Code Style: Does it follow our coding conventions and best practices?
  • Code Quality: Is the code maintainable and following best practices? See Values, Principles & Practices

Observability & Operations

  • Observability: Are there appropriate logs/metrics that would help debug and monitor the service?
  • Performance: Are there any performance considerations or potential bottlenecks?
  • Runbooks for Alarms: If an alarm has been created or updated, has a corresponding runbook been created or updated?

Documentation

  • Documentation: Is the code well documented? Is there any existing documentation that needs updating?
  • Comments: Are complex sections of code adequately commented if the intent is not clear?

Review PR:

  • Title: Contains ticket number and clear summary of change
  • Description: Has clear description of change

Evidence

Unit tests
image

Documentation

N/A

@phad phad marked this pull request as ready for review June 23, 2026 08:56
@phad phad requested review from a team as code owners June 23, 2026 08:56
@sonarqubecloud

Copy link
Copy Markdown

@phad

phad commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

abandoned in favour of #1250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant