Skip to content

Commit 42eaf52

Browse files
committed
refactor(database): health check logging to use logger instead of console.
1 parent e03c9c4 commit 42eaf52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/service/database/ServiceProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ export class ServiceProvider {
6969
const client = await this.getPoolClint();
7070
await client.query('SELECT NOW()');
7171
client.release();
72-
console.log('Database is healthy.');
72+
logger.info('Database is healthy.');
7373
return true;
7474
} catch (err: any) {
75-
console.error('Database health check failed:', err.message);
75+
logger.error('Database health check failed:', err.message);
7676
return false;
7777
}
7878
}

0 commit comments

Comments
 (0)