Lower setPrefix() warning 88/99288/1
authorRobert Varga <[email protected]>
Thu, 13 Jan 2022 10:49:13 +0000 (11:49 +0100)
committerRobert Varga <[email protected]>
Thu, 13 Jan 2022 10:50:56 +0000 (11:50 +0100)
Our initial check is quite noisy when we get wired to JDK's
XMLDOMWriterImpl implementation. We very much expect things to work
anyway, so let's lower the message down to debug.

Change-Id: Ie47bb886c1557b6f685bf8ee42ee65f8972a1898
Signed-off-by: Robert Varga <[email protected]>
netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/NetconfUtil.java

index d2ae6c73fdc25bd2973b370b832121815c4ebbe3..093f9e545081c4d315fea2f1953e27f0f31a3402 100644 (file)
@@ -82,7 +82,7 @@ public final class NetconfUtil {
                 testWriter.setNamespaceContext(namespaceContext);
             } catch (final UnsupportedOperationException e) {
                 // This happens with JDK's DOM writer, which we may be using
-                LOG.warn("Unable to set namespace context, falling back to setPrefix()", e);
+                LOG.debug("Unable to set namespace context, falling back to setPrefix()", e);
                 return writer -> writer.setPrefix("op", netconfNamespace);
             } catch (XMLStreamException e) {
                 throw new ExceptionInInitializerError(e);