You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by gn...@apache.org on 2026/03/12 09:56:47 UTC

(cxf) branch fix/reduce-equal-candidates-log-level created (now bb0dfc3397)

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

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


      at bb0dfc3397 Reduce equal method candidates log from WARNING to FINE

This branch includes the following new commits:

     new bb0dfc3397 Reduce equal method candidates log from WARNING to FINE

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(cxf) 01/01: Reduce equal method candidates log from WARNING to FINE

Posted by gn...@apache.org.
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 <gn...@gmail.com>
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 <no...@anthropic.com>
---
 .../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;
     }