Skip to content

Commit

Permalink
fix(logging): if a user fails, log as a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Jul 30, 2023
1 parent 60fb24a commit 3d3584a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/biometric/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function handler(
if (confidence && confidence > 85) {
isLive = true;
} else {
logger.info(`Low confidence (${confidence}%) for citizen ${cedula}`);
logger.warn(`Low confidence (${confidence}%) for citizen ${cedula}`);
return res.status(200).end(
JSON.stringify({
error: 'Low Confidence',
Expand Down

0 comments on commit 3d3584a

Please sign in to comment.