summaryrefslogtreecommitdiff
path: root/src/bin/roughenough-kms.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/roughenough-kms.rs')
-rw-r--r--src/bin/roughenough-kms.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/roughenough-kms.rs b/src/bin/roughenough-kms.rs
index f7b012e..fecfdde 100644
--- a/src/bin/roughenough-kms.rs
+++ b/src/bin/roughenough-kms.rs
@@ -25,6 +25,8 @@ use clap::{App, Arg};
#[allow(unused_imports)]
use roughenough::kms::{EnvelopeEncryption, KmsProvider};
use roughenough::roughenough_version;
+use simple_logger::SimpleLogger;
+use log::LevelFilter;
#[cfg(not(any(feature = "awskms", feature = "gcpkms")))]
fn encrypt_seed(_: &str, _: &str) {
@@ -88,9 +90,7 @@ fn get_kms(kms_key: &str) -> impl KmsProvider {
#[allow(unused_variables)]
pub fn main() {
- use log::Level;
-
- simple_logger::init_with_level(Level::Info).unwrap();
+ SimpleLogger::new().with_level(LevelFilter::Info).init().unwrap();
let matches = App::new("roughenough-kms")
.version(roughenough_version().as_ref())