move logging to correct location
This commit is contained in:
parent
6a592f179a
commit
5ccec75536
1 changed files with 7 additions and 7 deletions
14
src/main.rs
14
src/main.rs
|
@ -35,13 +35,6 @@ async fn main() -> io::Result<()> {
|
|||
|
||||
let addr = ("0.0.0.0", config.fc.port.unwrap());
|
||||
|
||||
println!(
|
||||
"Listening to {}://{}:{}",
|
||||
config.clone().fc.scheme.unwrap(),
|
||||
addr.0,
|
||||
addr.1
|
||||
);
|
||||
|
||||
let static_folder = "static";
|
||||
let dist_folder = format!("dist/{static_folder}");
|
||||
|
||||
|
@ -88,6 +81,13 @@ async fn main() -> io::Result<()> {
|
|||
format!("{dist_folder}/")
|
||||
};
|
||||
|
||||
println!(
|
||||
"Listening to {}://{}:{}",
|
||||
config.clone().fc.scheme.unwrap(),
|
||||
addr.0,
|
||||
addr.1
|
||||
);
|
||||
|
||||
HttpServer::new(move || {
|
||||
App::new()
|
||||
.app_data(web::Data::new(config.clone()))
|
||||
|
|
Loading…
Reference in a new issue