import java.util.List;
import java.util.Map.Entry;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.opendaylight.lispflowmapping.implementation.config.ConfigIni;
import org.opendaylight.lispflowmapping.implementation.dao.MappingServiceKeyUtil;
import org.opendaylight.lispflowmapping.implementation.util.DAOMappingUtil;
}
}
} catch (ClassCastException cce) {
- LOG.error("Class Cast Exception while building EidToLocatorRecord: {}", cce);
+ LOG.error("Class Cast Exception while building EidToLocatorRecord: {}", ExceptionUtils.getStackTrace(cce));
}
}
package org.opendaylight.lispflowmapping.implementation.lisp;
-import java.io.PrintWriter;
-import java.io.StringWriter;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Map.Entry;
import org.apache.commons.lang3.BooleanUtils;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.opendaylight.lispflowmapping.implementation.authentication.LispAuthenticationUtil;
import org.opendaylight.lispflowmapping.implementation.config.ConfigIni;
import org.opendaylight.lispflowmapping.implementation.dao.MappingServiceKeyUtil;
try {
callback.handleSMR(mapRequest, rloc.getSrcRloc());
} catch (Exception e) {
- StringWriter sw = new StringWriter();
- e.printStackTrace(new PrintWriter(sw));
- LOG.error("Errors encountered while handling SMR:" + sw.toString());
+ LOG.error("Errors encountered while handling SMR:" + ExceptionUtils.getStackTrace(e));
}
}
}
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.LispAFIAddress;
import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.lcafsegmentaddress.AddressBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.lcafsegmentaddress.Address;
return new LcafSegmentAddrBuilder(segAddr).setAddress(normalizedAddr).build();
}
} catch (UnknownHostException e) {
- LOG.trace("Failed to normalize " + address + ": " + e.getMessage());
+ LOG.trace("Failed to normalize " + address + ": " + ExceptionUtils.getStackTrace(e));
return null;
}
return null;
import java.util.List;
import java.util.concurrent.Future;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.opendaylight.lispflowmapping.implementation.util.LispAFIConvertor;
import org.opendaylight.neutron.spi.INeutronPortAware;
import org.opendaylight.neutron.spi.NeutronPort;
} catch (Exception e) {
- LOG.warn("Failed to GET mapping for EID {}: , mappingInput: {} , Exception: {}", hostAddress, input, e);
+ LOG.warn("Failed to GET mapping for EID {}: , mappingInput: {} , Exception: {}", hostAddress, input,
+ ExceptionUtils.getStackTrace(e));
return;
}
import java.net.HttpURLConnection;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.commons.net.util.SubnetUtils;
import org.apache.commons.net.util.SubnetUtils.SubnetInfo;
import org.opendaylight.lispflowmapping.implementation.util.LispAFIConvertor;
+ subnet.getNetworkUUID());
} catch (Exception e) {
LOG.error("Adding new subnet to lisp service mapping service failed. Subnet : "
- + subnet.toString() + "Error: "+ e);
+ + subnet.toString() + "Error: " + ExceptionUtils.getStackTrace(e));
}
LOG.info("Neutron Subnet Created request : Subnet name: "
+ subnet.getName() + " Subnet Cidr: " + subnet.getCidr());
+ subnet.getNetworkUUID());
} catch (Exception e) {
LOG.error("Deleting subnet's EID prefix from mapping service failed + Subnet: "
- + subnet.toString());
+ + subnet.toString() + "Error: " + ExceptionUtils.getStackTrace(e));
}
}
import java.net.SocketTimeoutException;
import java.nio.ByteBuffer;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
restartXtrThread();
}
} catch (SocketException e) {
- LOG.error("couldn't start socket {}", e.getMessage());
+ LOG.error("couldn't start socket: {}", ExceptionUtils.getStackTrace(e));
}
}
xtrThread.start();
LOG.info("xTR Southbound Plugin is up!");
} catch (SocketException e) {
- LOG.warn("failed to start xtr thread: {}", e.getMessage());
+ LOG.warn("failed to start xtr thread: {}", ExceptionUtils.getStackTrace(e));
}
}