This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch fix/reduce-equal-candidates-log-level
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit bb0dfc3397d6a64c297d7d3d2eabe0d91f3f624b
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu Mar 12 10:56:35 2026 +0100

    Reduce equal method candidates log from WARNING to FINE
    
    The "Both X and Y are equal candidates" message fires during normal
    CORS preflight handling where wildcard media types are used, producing
    noisy logs. Downgrade to FINE since the behavior is deterministic and
    users can enable debug logging to investigate ambiguous routing.
    
    Closes #862
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../apache/cxf/jaxrs/model/OperationResourceInfoComparatorBase.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfoComparatorBase.java
 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfoComparatorBase.java
index c382d8d0b7..72ee2132fe 100644
--- 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfoComparatorBase.java
+++ 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfoComparatorBase.java
@@ -98,8 +98,8 @@ public abstract class OperationResourceInfoComparatorBase {
                 e1.getClassResourceInfo().getServiceClass().getName() + "#" + 
e1.getMethodToInvoke().getName();
             String m2Name =
                 e2.getClassResourceInfo().getServiceClass().getName() + "#" + 
e2.getMethodToInvoke().getName();
-            LOG.warning("Both " + m1Name + " and " + m2Name + " are equal 
candidates for handling the current request"
-                        + " which can lead to unpredictable results");
+            LOG.fine("Both " + m1Name + " and " + m2Name + " are equal 
candidates for handling the current request"
+                     + " which can lead to unpredictable results");
         }
         return result;
     }

Reply via email to