Skip to content

Commit

Permalink
fix: PRO-2399 error console logging replaced with fastify logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kanthgithub committed Jun 6, 2024
1 parent a57be08 commit abcc53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/routes/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const adminRoutes: FastifyPluginAsync = async (server) => {
body.INDEXER_ENDPOINT ?? process.env.DEFAULT_INDEXER_ENDPOINT, body.API_KEY
], (err: any, row: any) => {
if (err) {
console.error(`Error while saving APIKeys: ${err}`)
request.log.error(`Error while saving APIKeys: ${err}`)
reject(err);
}
resolve(row);
Expand Down

0 comments on commit abcc53f

Please sign in to comment.