Skip to content

Commit bb0dfc3

Browse files
gnodetclaude
andcommitted
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 <noreply@anthropic.com>
1 parent fa4bdfb commit bb0dfc3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfoComparatorBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ protected int compare(OperationResourceInfo e1, OperationResourceInfo e2, boolea
9898
e1.getClassResourceInfo().getServiceClass().getName() + "#" + e1.getMethodToInvoke().getName();
9999
String m2Name =
100100
e2.getClassResourceInfo().getServiceClass().getName() + "#" + e2.getMethodToInvoke().getName();
101-
LOG.warning("Both " + m1Name + " and " + m2Name + " are equal candidates for handling the current request"
102-
+ " which can lead to unpredictable results");
101+
LOG.fine("Both " + m1Name + " and " + m2Name + " are equal candidates for handling the current request"
102+
+ " which can lead to unpredictable results");
103103
}
104104
return result;
105105
}

0 commit comments

Comments
 (0)