move logging to correct location
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
ci/woodpecker/pr/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-09 15:21:11 +02:00
parent 6a592f179a
commit 5ccec75536
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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()))