Skip to content

Commit

Permalink
Add more logs at startup (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop authored May 29, 2024
1 parent 199da4a commit 05719a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ pub struct App {

impl App {
pub async fn new(config: Config) -> eyre::Result<Self> {
tracing::info!("Initializing keys source");
let keys_source = init_keys_source(&config).await?;

tracing::info!("Initializing db");
let db = Database::new(&config.database).await?;

Ok(Self {
Expand Down
2 changes: 2 additions & 0 deletions src/keys/local_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pub struct LocalKeys {

impl LocalKeys {
pub fn new(_config: &LocalKeysConfig) -> Self {
tracing::info!("Initializing local keys source");

Self {
rng: rand::rngs::OsRng,
}
Expand Down

0 comments on commit 05719a1

Please sign in to comment.