Skip to content

Commit

Permalink
[Key Manager] Log the key manager config on startup for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLind authored and bors-libra committed Oct 10, 2020
1 parent b857711 commit 46b0244
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions secure/key-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ fn main() {
}

fn create_and_execute_key_manager(key_manager_config: KeyManagerConfig) -> Result<(), Error> {
info!(
LogSchema::new(LogEntry::Initialized).event(LogEvent::Pending),
key_manager_config = key_manager_config
);

let json_rpc_endpoint = key_manager_config.json_rpc_endpoint;
let libra_interface = JsonRpcLibraInterface::new(json_rpc_endpoint.clone());
let storage: Storage = (&key_manager_config.secure_backend)
Expand All @@ -71,5 +76,6 @@ fn create_and_execute_key_manager(key_manager_config: KeyManagerConfig) -> Resul
info!(LogSchema::new(LogEntry::Initialized)
.event(LogEvent::Success)
.json_rpc_endpoint(&json_rpc_endpoint));

key_manager.execute()
}

0 comments on commit 46b0244

Please sign in to comment.