Skip to content

Commit a223121

Browse files
committed
[refactor] Remove superfluous logging. Closes #3907
1 parent 7b9671d commit a223121

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

extensions/modules/xmldiff/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@
5252
<version>${project.version}</version>
5353
</dependency>
5454

55-
<dependency>
56-
<groupId>org.apache.logging.log4j</groupId>
57-
<artifactId>log4j-api</artifactId>
58-
</dependency>
59-
6055
<dependency>
6156
<groupId>org.xmlunit</groupId>
6257
<artifactId>xmlunit-core</artifactId>

extensions/modules/xmldiff/src/main/java/org/exist/xquery/modules/xmldiff/Compare.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
*/
2222
package org.exist.xquery.modules.xmldiff;
2323

24-
import org.apache.logging.log4j.LogManager;
25-
import org.apache.logging.log4j.Logger;
26-
2724
import org.xmlunit.builder.DiffBuilder;
2825
import org.xmlunit.builder.Input;
2926
import org.xmlunit.diff.Diff;
@@ -42,8 +39,6 @@
4239
* @author <a href="mailto:[email protected]">Pierrick Brihaye</a>
4340
*/
4441
public class Compare extends Function {
45-
46-
private static final Logger logger = LogManager.getLogger(Compare.class);
4742
private final static Properties OUTPUT_PROPERTIES = new Properties();
4843

4944
static {
@@ -126,9 +121,6 @@ else if (s2.isEmpty()) {
126121
.checkForIdentical()
127122
.build();
128123
boolean identical = !diff.hasDifferences();
129-
if (!identical) {
130-
logger.warn("Diff result: {}", diff.toString());
131-
}
132124
result = new BooleanValue(identical);
133125
} catch (Exception e) {
134126
throw new XPathException(this, "An exception occurred while serializing node " +

0 commit comments

Comments
 (0)