Change info to debug

This commit is contained in:
asonix 2020-03-19 20:08:33 -05:00
parent 45f7dbe532
commit 4feff4a894
4 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
name = "http-signature-normalization-actix" name = "http-signature-normalization-actix"
description = "An HTTP Signatures library that leaves the signing to you" description = "An HTTP Signatures library that leaves the signing to you"
version = "0.3.0-alpha.5" version = "0.3.0-alpha.6"
authors = ["asonix <asonix@asonix.dog>"] authors = ["asonix <asonix@asonix.dog>"]
license-file = "LICENSE" license-file = "LICENSE"
readme = "README.md" readme = "README.md"

View file

@ -16,7 +16,7 @@ This crate provides extensions the ClientRequest type from Actix Web, and provid
actix = "0.10.0-alpha.1" actix = "0.10.0-alpha.1"
actix-web = "3.0.0-alpha.1" actix-web = "3.0.0-alpha.1"
thiserror = "0.1" thiserror = "0.1"
http-signature-normalization-actix = { version = "0.3.0-alpha.5", default-features = false, features = ["sha-2"] } http-signature-normalization-actix = { version = "0.3.0-alpha.6", default-features = false, features = ["sha-2"] }
sha2 = "0.8" sha2 = "0.8"
``` ```

View file

@ -1,4 +1,4 @@
use log::{info, warn}; use log::{debug, warn};
use sha2::{Sha224, Sha256, Sha384, Sha512, Sha512Trunc224, Sha512Trunc256}; use sha2::{Sha224, Sha256, Sha384, Sha512, Sha512Trunc224, Sha512Trunc256};
use super::{DigestCreate, DigestPart, DigestVerify}; use super::{DigestCreate, DigestPart, DigestVerify};
@ -13,7 +13,7 @@ fn verify(digest: &mut impl sha2::Digest, name: &str, parts: &[DigestPart], byte
.iter() .iter()
.find(|p| p.algorithm.to_lowercase() == name.to_lowercase()) .find(|p| p.algorithm.to_lowercase() == name.to_lowercase())
{ {
info!("Verifying digest type, {}", name); debug!("Verifying digest type, {}", name);
digest.input(bytes); digest.input(bytes);
let encoded = base64::encode(&digest.result_reset()); let encoded = base64::encode(&digest.result_reset());

View file

@ -1,4 +1,4 @@
use log::{info, warn}; use log::{debug, warn};
use sha3::{ use sha3::{
Keccak224, Keccak256, Keccak256Full, Keccak384, Keccak512, Sha3_224, Sha3_256, Sha3_384, Keccak224, Keccak256, Keccak256Full, Keccak384, Keccak512, Sha3_224, Sha3_256, Sha3_384,
Sha3_512, Sha3_512,
@ -16,7 +16,7 @@ fn verify(digest: &mut impl sha2::Digest, name: &str, parts: &[DigestPart], byte
.iter() .iter()
.find(|p| p.algorithm.to_lowercase() == name.to_lowercase()) .find(|p| p.algorithm.to_lowercase() == name.to_lowercase())
{ {
info!("Verifying digest type, {}", name); debug!("Verifying digest type, {}", name);
digest.input(bytes); digest.input(bytes);
let encoded = base64::encode(&digest.result_reset()); let encoded = base64::encode(&digest.result_reset());