diff --git a/runtime/src/api_token.rs b/runtime/src/api_token.rs index 9adea5a1..8db129e0 100644 --- a/runtime/src/api_token.rs +++ b/runtime/src/api_token.rs @@ -1,3 +1,4 @@ +use log::info; use once_cell::sync::Lazy; use rand::{RngCore, SeedableRng}; use rocket::http::Status; @@ -8,7 +9,11 @@ pub static API_TOKEN: Lazy = Lazy::new(|| { let mut token = [0u8; 32]; let mut rng = rand_chacha::ChaChaRng::from_entropy(); rng.fill_bytes(&mut token); - APIToken::from_bytes(token.to_vec()) + + let token = APIToken::from_bytes(token.to_vec()); + info!("API token was generated successfully."); + + token }); pub struct APIToken { diff --git a/runtime/src/encryption.rs b/runtime/src/encryption.rs index 4c49108c..bd7a4687 100644 --- a/runtime/src/encryption.rs +++ b/runtime/src/encryption.rs @@ -37,6 +37,7 @@ pub static ENCRYPTION: Lazy = Lazy::new(|| { rng.fill_bytes(&mut secret_key); rng.fill_bytes(&mut secret_key_salt); + info!("Secret password for the IPC channel was generated successfully."); Encryption::new(&secret_key, &secret_key_salt).unwrap() }); diff --git a/runtime/src/main.rs b/runtime/src/main.rs index 41ef20db..a9fab351 100644 --- a/runtime/src/main.rs +++ b/runtime/src/main.rs @@ -139,8 +139,7 @@ async fn main() { .ignite().await.unwrap() .launch().await.unwrap(); }); - - info!("Secret password for the IPC channel was generated successfully."); + start_dotnet_server(*API_SERVER_PORT); start_tauri(); } \ No newline at end of file