log error for 500 internal server error during 'listen'
parent
456ab04f78
commit
62821c546b
|
@ -126,7 +126,10 @@ pub async fn handle_listen (
|
||||||
Ok (ok_reply (rmp_serde::to_vec (&vec! [one_req])?)?)
|
Ok (ok_reply (rmp_serde::to_vec (&vec! [one_req])?)?)
|
||||||
},
|
},
|
||||||
Ok (Err (ShuttingDownError::ShuttingDown)) => Ok (error_reply (StatusCode::SERVICE_UNAVAILABLE, "Server is shutting down, try again soon")?),
|
Ok (Err (ShuttingDownError::ShuttingDown)) => Ok (error_reply (StatusCode::SERVICE_UNAVAILABLE, "Server is shutting down, try again soon")?),
|
||||||
Err (_) => Ok (error_reply (StatusCode::INTERNAL_SERVER_ERROR, "Server error")?),
|
Err (e) => {
|
||||||
|
error! ("{}", e);
|
||||||
|
Ok (error_reply (StatusCode::INTERNAL_SERVER_ERROR, "Server error")?)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
_ = tokio::time::sleep (Duration::from_secs (30)).fuse () => {
|
_ = tokio::time::sleep (Duration::from_secs (30)).fuse () => {
|
||||||
trace! ("Timed out http_listen for server {}", watcher_code);
|
trace! ("Timed out http_listen for server {}", watcher_code);
|
||||||
|
|
Loading…
Reference in New Issue