Skip to content

Commit b57ec5a

Browse files
authored
fix(runtime): emit error and don't exit on bad health request (#2088)
1 parent 9001b89 commit b57ec5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/src/rt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use shuttle_common::{
1616
};
1717
use shuttle_service::{Environment, ResourceFactory, Service};
1818
use tokio::net::TcpListener;
19-
use tracing::{debug, info, trace};
19+
use tracing::{debug, error, info, trace};
2020

2121
use crate::__internals::{Loader, Runner};
2222

@@ -119,8 +119,8 @@ pub async fn start(loader: impl Loader + Send + 'static, runner: impl Runner + S
119119
)
120120
.await
121121
{
122-
eprintln!("ERROR: Health check error: {err}");
123-
exit(200);
122+
// Error happens i.e. if something was wrong with the HTTP request
123+
error!("Health check error: {err}");
124124
}
125125
});
126126
}

0 commit comments

Comments
 (0)