From afd6e4dc414708f12c46b251d2ca8df1afd3f66b Mon Sep 17 00:00:00 2001 From: Juliana Fajardini Date: Mon, 27 Nov 2023 17:16:52 -0300 Subject: [PATCH] pgsql: don't log unknown message type --- rust/src/pgsql/logger.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rust/src/pgsql/logger.rs b/rust/src/pgsql/logger.rs index 57a3e526709c..b17986dec85b 100644 --- a/rust/src/pgsql/logger.rs +++ b/rust/src/pgsql/logger.rs @@ -184,12 +184,10 @@ fn log_response(res: &PgsqlBEMessage, jb: &mut JsonBuilder) -> Result<(), JsonEr } PgsqlBEMessage::UnknownMessageType(RegularPacket { identifier: _, - length, - payload, + length: _, + payload: _, }) => { - // jb.set_string_from_bytes("identifier", identifier.to_vec())?; - jb.set_uint("length", (*length).into())?; - jb.set_string_from_bytes("payload", payload)?; + // We don't want to log these, for now. Cf redmine: #6576 } PgsqlBEMessage::AuthenticationOk(_) | PgsqlBEMessage::AuthenticationCleartextPassword(_)