From 96a733b433c75973bb15dec835d8d9102c24316f Mon Sep 17 00:00:00 2001 From: Li Cao Date: Tue, 30 Sep 2025 09:13:22 +0800 Subject: [PATCH] [routing-manager] remove confusing log of nat64 prefix discovery (#11973) Note that `otPlatInfraIfDiscoverNat64Prefix` has an empty implementation now and it always returns UNIMPLEMENTED error. So now we constantly see the warn log on devices, which is confusing. --- src/core/border_router/routing_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/border_router/routing_manager.cpp b/src/core/border_router/routing_manager.cpp index fd4111a3e..8d912ffa4 100644 --- a/src/core/border_router/routing_manager.cpp +++ b/src/core/border_router/routing_manager.cpp @@ -4318,7 +4318,10 @@ void RoutingManager::Nat64PrefixManager::Discover(void) } else { - LogWarn("Failed to discover infraif NAT64 prefix: %s", ErrorToString(error)); + if (error != kErrorNotImplemented) + { + LogWarn("Failed to discover infraif NAT64 prefix: %s", ErrorToString(error)); + } Get().ScheduleRoutingPolicyEvaluation(kAfterRandomDelay); } }