Skip to content

Commit

Permalink
More logs at startup (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop authored May 22, 2024
1 parent afde5cb commit 199da4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/keys/kms_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ pub struct KmsKeys {

impl KmsKeys {
pub async fn new(_config: &KmsKeysConfig) -> eyre::Result<Self> {
tracing::info!("Initializing AWS client - loading config");
let aws_config =
aws_config::load_defaults(BehaviorVersion::latest()).await;

tracing::info!(?aws_config, "Initializing KMS client");
let kms_client = aws_sdk_kms::Client::new(&aws_config);

tracing::info!("Initialized KMS client");

Ok(Self { kms_client })
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ impl Service {
pub async fn new(config: Config) -> eyre::Result<Self> {
let app = Arc::new(App::new(config).await?);

tracing::info!("Getting network chain ids");
let chain_ids = app.db.get_network_chain_ids().await?;

tracing::info!("Spawning tasks");
let task_runner = TaskRunner::new(app.clone());
task_runner.add_task("Broadcast transactions", tasks::broadcast_txs);
task_runner.add_task("Escalate transactions", tasks::escalate_txs_task);
Expand Down

0 comments on commit 199da4a

Please sign in to comment.