Skip to content

Commit

Permalink
tests: fix Logger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
masontikhonov committed Jul 4, 2024
1 parent b2d1d07 commit 045bce9
Show file tree
Hide file tree
Showing 2 changed files with 331 additions and 94 deletions.
4 changes: 2 additions & 2 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,12 @@ class Logger {
server.post('/secrets', secretsOptions, async (request, reply) => {
try {
const { body: secret } = request;
logger.info(`got request to add new mask: ${JSON.stringify(secret)}`);
logger.info(`got request to add new mask: ${secret.key}`);
this.taskLogger.addNewMask(secret);
reply.code(201);
return 'secret added';
} catch (err) {
logger.info(`could not create new mask due to error: ${err}`);
logger.info(`could not create new mask for due to error: ${err}`);
reply.code(500);
throw err;
}
Expand Down
Loading

0 comments on commit 045bce9

Please sign in to comment.