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.
This commit is contained in:
KernelDeimos
2025-05-22 15:18:36 -04:00
parent 5a6b299e78
commit 2cd5b3cb49

View File

@@ -172,6 +172,8 @@ class ServerHealthService extends BaseService {
{ error: err }
);
check_failures.push({ name });
this.log.error(`Error for healthcheck fail on ${name}: ` + e.stack);
// Run the on_fail handlers
for ( const fn of chainable.on_fail_ ) {