mirror of https://github.com/ctz/rustls
refactor: avoid pretty printing when logging
Pretty printing should not used in logging with level that's higher then Debug.
This commit is contained in:
parent
cf098b08d3
commit
d5c6036716
|
@ -434,7 +434,7 @@ impl CommonState {
|
|||
if self.is_tls13() && alert.description != AlertDescription::UserCanceled {
|
||||
return Err(self.send_fatal_alert(AlertDescription::DecodeError, err));
|
||||
} else {
|
||||
warn!("TLS alert warning received: {:#?}", alert);
|
||||
warn!("TLS alert warning received: {:?}", alert);
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue