Skip to content

Commit 2cd5b3c

Browse files
committed
fix: prevent health check from surpressing traces
Stack traces aren't logged when a health check failure occurs. This was caused by interfacing with AlarmService directly instead of using the error service.
1 parent 5a6b299 commit 2cd5b3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/src/modules/core/ServerHealthService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ class ServerHealthService extends BaseService {
172172
{ error: err }
173173
);
174174
check_failures.push({ name });
175+
176+
this.log.error(`Error for healthcheck fail on ${name}: ` + e.stack);
175177

176178
// Run the on_fail handlers
177179
for ( const fn of chainable.on_fail_ ) {

0 commit comments

Comments
 (0)