mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-16 02:38:58 +00: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:
1 parent
5a6b299e78
commit
2cd5b3cb49
1 file changed
+2
@@ -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