pgsql: don't log password msg if password disabled

If the logging of the password is disabled, there isn't much point in
logging the password message itself.
pull/9985/head
Juliana Fajardini 2 years ago committed by Victor Julien
parent fc81c99b58
commit bdec2d8ea8

@ -78,8 +78,6 @@ fn log_request(req: &PgsqlFEMessage, flags: u32) -> Result<JsonBuilder, JsonErro
}) => {
if flags & PGSQL_LOG_PASSWORDS != 0 {
js.set_string_from_bytes("password", payload)?;
} else {
js.set_string(req.to_str(), "password log disabled")?;
}
}
PgsqlFEMessage::SASLResponse(RegularPacket {

Loading…
Cancel
Save