- protected void encode(final ChannelHandlerContext ctx, final NetconfMessage msg, final ByteBuf out) throws EXIOptionsException, IOException, TransformerException {
- if (LOG.isTraceEnabled()) {
- LOG.trace("Sent to encode : {}", XmlUtil.toString(msg.getDocument()));
- }
+ protected void encode(final ChannelHandlerContext ctx, final NetconfMessage msg, final ByteBuf out) throws EXIOptionsException, IOException, TransformerException, TransmogrifierException {
+ LOG.trace("Sent to encode : {}", msg);