From 8983090a874fea63b57e76b6ffaf993fac1cbb81 Mon Sep 17 00:00:00 2001 From: AztecBot Date: Fri, 13 Mar 2026 18:18:45 +0000 Subject: [PATCH] feat: use warn_log_format for discarded messages (backport #21053) Change aztecnr_debug_log_format to aztecnr_warn_log_format for unknown message type IDs, so users are properly warned about discarded messages. --- .../aztec-nr/aztec/src/messages/discovery/process_message.nr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noir-projects/aztec-nr/aztec/src/messages/discovery/process_message.nr b/noir-projects/aztec-nr/aztec/src/messages/discovery/process_message.nr index 40bf1cbee85e..21148a65f477 100644 --- a/noir-projects/aztec-nr/aztec/src/messages/discovery/process_message.nr +++ b/noir-projects/aztec-nr/aztec/src/messages/discovery/process_message.nr @@ -9,7 +9,7 @@ use crate::messages::{ processing::MessageContext, }; -use crate::logging::{aztecnr_debug_log, aztecnr_debug_log_format, aztecnr_warn_log_format}; +use crate::logging::{aztecnr_debug_log, aztecnr_warn_log_format}; use crate::protocol::address::AztecAddress; /// Processes a message that can contain notes, partial notes, or events. @@ -89,6 +89,6 @@ pub unconstrained fn process_message_plaintext( message_context.tx_hash, ); } else { - aztecnr_debug_log_format!("Unknown msg type id {0}")([msg_type_id as Field]); + aztecnr_warn_log_format!("Unknown msg type id {0}")([msg_type_id as Field]); } }