mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-05 12:40:26 -06:00
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:
@@ -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_ ) {
|
||||
|
||||
Reference in New Issue
Block a user