aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 422341d..e39cf58 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,5 @@
#![feature(try_trait_v2)]
+#![feature(exclusive_range_pattern)]
pub mod config;
pub mod error;
@@ -21,7 +22,7 @@ use hyper::{
service::service_fn,
Request, Response, StatusCode,
};
-use log::{debug, info, warn};
+use log::{debug, error, info, warn};
use std::{fs::File, io::BufReader, net::SocketAddr, path::Path, sync::Arc};
use tokio::{
io::{AsyncRead, AsyncWrite},
@@ -42,12 +43,12 @@ async fn main() -> anyhow::Result<()> {
tokio::spawn(async move {
if let Err(e) = serve_http(config).await {
- panic!("{e}")
+ error!("{e}")
}
});
tokio::spawn(async move {
if let Err(e) = serve_https(config2).await {
- panic!("{e}")
+ error!("{e}")
}
});