Skip to content

Commit

Permalink
log retries
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Nov 11, 2024
1 parent 3ab6460 commit fb29e06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/database/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ export async function testConnection(retries = 3, delay = 5000) {
const result = await databaseHelper.query(test);
return result.rows[0];
} catch (error) {
logError('Could not get a connection to the database', error);
logError(
`Could not get a connection to the database (retries ${retries})`,
error
);

if (retries > 0) {
logError(
Expand Down

0 comments on commit fb29e06

Please sign in to comment.