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:
Yuxiang Cao 2024-02-28 15:47:58 -08:00 committed by Joe Birr-Pixton
parent cf098b08d3
commit d5c6036716
1 changed files with 1 additions and 1 deletions

View File

@ -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(());
}
}