proxmox-rest-server: improve logging

And rename server_state_init() into catch_shutdown_and_reload_signals().
This commit is contained in:
Dietmar Maurer
2021-09-29 14:34:25 +02:00
parent a0ffd4a413
commit 38da8ca1bc
6 changed files with 22 additions and 12 deletions

View File

@ -127,7 +127,7 @@ async fn run() -> Result<(), Error> {
let init_result: Result<(), Error> = try_block!({
proxmox_rest_server::register_task_control_commands(&mut commando_sock)?;
commando_sock.spawn()?;
proxmox_rest_server::server_state_init()?;
proxmox_rest_server::catch_shutdown_and_reload_signals()?;
Ok(())
});

View File

@ -270,7 +270,7 @@ async fn run() -> Result<(), Error> {
let init_result: Result<(), Error> = try_block!({
proxmox_rest_server::register_task_control_commands(&mut commando_sock)?;
commando_sock.spawn()?;
proxmox_rest_server::server_state_init()?;
proxmox_rest_server::catch_shutdown_and_reload_signals()?;
Ok(())
});