File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -222,9 +222,7 @@ impl VapidTracker {
222
222
} ;
223
223
let result = self . 0 . contains ( & key) ;
224
224
225
- // The following has been elevated for diagnostic purposes and should be returned as `debug` once
226
- // reliability issues are addressed
227
- warn ! ( "🔍 Checking {:?} {}" , & vapid. public_key, {
225
+ debug ! ( "🔍 Checking {:?} {}" , & vapid. public_key, {
228
226
if result {
229
227
"Match!"
230
228
} else {
Original file line number Diff line number Diff line change @@ -47,22 +47,7 @@ pub fn b64_encode_std(input: &Vec<u8>) -> String {
47
47
48
48
/// Try to decode the string, first as URL safe, then as STD.
49
49
pub fn b64_decode ( input : & str ) -> Result < Vec < u8 > , base64:: DecodeError > {
50
- // This is very verbose, but for some reason the key on stage is failing.
51
- // This code should help identify the cause and should be temporary.
52
- match b64_decode_url ( input) {
53
- Ok ( v) => Ok ( v) ,
54
- Err ( base64:: DecodeError :: InvalidByte ( pos, chr) ) => {
55
- warn ! (
56
- "Decode: invalid byte {:?} at {} in {:?}" ,
57
- chr as char , pos, input
58
- ) ;
59
- b64_decode_std ( input)
60
- }
61
- Err ( e) => {
62
- warn ! ( "Decode: Unexpected error {:?} for {:?}" , & e, input) ;
63
- Err ( e)
64
- }
65
- }
50
+ b64_decode_url ( input) . or_else ( |_| b64_decode_std ( input) )
66
51
}
67
52
68
53
pub fn deserialize_u32_to_duration < ' de , D > ( deserializer : D ) -> Result < Duration , D :: Error >
You can’t perform that action at this time.
0 commit comments