mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
no longer log /liveness and /readiness (logspam)
This commit is contained in:
1 parent
fd91d303b2
commit
2dcc4e5896
3 files changed
+3
-3
No files matched your search
@@ -7,7 +7,6 @@ use actix_web::{
|
||||
|
||||
#[get("/liveness")]
|
||||
pub async fn get_liveness(_request: HttpRequest) -> std::io::Result<HttpResponse> {
|
||||
println!("GET /liveness");
|
||||
Ok(HttpResponse::build(StatusCode::OK)
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body("Live"))
|
||||
|
||||
@@ -7,7 +7,6 @@ use actix_web::{
|
||||
|
||||
#[get("/readiness")]
|
||||
pub async fn get_readiness(_request: HttpRequest) -> std::io::Result<HttpResponse> {
|
||||
println!("GET /readiness");
|
||||
Ok(HttpResponse::build(StatusCode::OK)
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body("Ready"))
|
||||
|
||||
@@ -108,7 +108,9 @@ async fn main() -> std::io::Result<()> {
|
||||
.allowed_header(http::header::CONTENT_TYPE)
|
||||
.max_age(3600)
|
||||
.finish())
|
||||
.wrap(Logger::default())
|
||||
.wrap(Logger::default()
|
||||
.exclude("/liveness")
|
||||
.exclude("/readiness"))
|
||||
.service(Files::new("/frontend", asset_directory.clone()).show_files_listing())
|
||||
.service(
|
||||
web::resource("/advanced_tts")
|
||||
|
||||
Reference in new issue
Block a user