mirror of https://github.com/fafhrd91/actix-web
use warn instead of error
This commit is contained in:
parent
b7380f2359
commit
e0d4e54179
|
@ -1,6 +1,6 @@
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
use log::error;
|
use log::warn;
|
||||||
use ring::aead::{open_in_place, seal_in_place, Aad, Algorithm, Nonce, AES_256_GCM};
|
use ring::aead::{open_in_place, seal_in_place, Aad, Algorithm, Nonce, AES_256_GCM};
|
||||||
use ring::aead::{OpeningKey, SealingKey};
|
use ring::aead::{OpeningKey, SealingKey};
|
||||||
use ring::rand::{SecureRandom, SystemRandom};
|
use ring::rand::{SecureRandom, SystemRandom};
|
||||||
|
@ -63,7 +63,7 @@ impl<'a> PrivateJar<'a> {
|
||||||
if let Ok(unsealed_utf8) = str::from_utf8(unsealed) {
|
if let Ok(unsealed_utf8) = str::from_utf8(unsealed) {
|
||||||
Ok(unsealed_utf8.to_string())
|
Ok(unsealed_utf8.to_string())
|
||||||
} else {
|
} else {
|
||||||
error!("Private cookie does not have utf8 content!
|
warn!("Private cookie does not have utf8 content!
|
||||||
It is likely the secret key used to encrypt them has been leaked.
|
It is likely the secret key used to encrypt them has been leaked.
|
||||||
Please change it as soon as possible.");
|
Please change it as soon as possible.");
|
||||||
Err("bad unsealed utf8")
|
Err("bad unsealed utf8")
|
||||||
|
|
Loading…
Reference in New Issue