Add public url to server start log.

fixes #11
This commit is contained in:
Dietrich 2021-03-09 11:59:52 +01:00
parent 56ab3ea893
commit 8fd62a788b
Signed by: dietrich
GPG Key ID: 9F3C20C0F85DF67C

View File

@ -238,6 +238,12 @@ async fn webservice(server_config: ServerConfig) -> std::io::Result<()> {
&server_config.protocol, &server_config.protocol,
host_port host_port
); );
slog_info!(
server_config.log,
"If the public url is set up correctly it should be accessible via: {}://{}/admin/login/",
&server_config.protocol,
&server_config.public_url
);
HttpServer::new(move || { HttpServer::new(move || {
let tera = build_tera(); //Tera::new("templates/**/*").expect("failed to initialize the templates"); let tera = build_tera(); //Tera::new("templates/**/*").expect("failed to initialize the templates");