Skip to content

Commit

Permalink
Add some logs and change some logs messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ae2079 committed Jun 11, 2024
1 parent 6c5f018 commit bb496c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/controllers/v1/passportAuthenticationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class PassportAuthenticationController {
try {
address = ethers.utils.verifyMessage(message, signature);
} catch (e) {
logger.error('authenticate, passport invalid signature error', e);
throw new StandardError(errorMessagesEnum.PASSPORT_INVALID_SIGNATURE);
}
logger.info('Logging address: ', address);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/v1/adminbroRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getAdminBroRouter = async () => {
}
return false;
} catch (e) {
logger.error({ e });
logger.error('getAdminBroInstance() error', e);
return false;
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/services/safeServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const fetchSafeMessage = async (
);
safeMessage = response.data;
} catch (e) {
console.error(e);
console.error('fetchSafeMessage() error', e);
}

return safeMessage;
Expand All @@ -43,7 +43,7 @@ export const fetchSafeMessageByTimestamp = async (
response.data.results,
);
} catch (e) {
console.error(e);
console.error('fetchSafeMessageByTimestamp() error', e);
}

return safeMessage;
Expand Down

0 comments on commit bb496c8

Please sign in to comment.