Log exception message when intent compiling fails
Change-Id: Ied046c31e512504b45ba92023996d400574d5128
(cherry picked from commit c4d6a7ce658d595d9c8d1c270cf5f469c1d3e1b7)
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/phase/Compiling.java b/core/net/src/main/java/org/onosproject/net/intent/impl/phase/Compiling.java
index 9eb3106..d42df80 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/phase/Compiling.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/phase/Compiling.java
@@ -59,7 +59,7 @@
stored.map(IntentData::installables).orElse(null));
return Optional.of(new Installing(processor, IntentData.compiled(data, compiled), stored));
} catch (IntentException e) {
- log.warn("Unable to compile intent {} due to:", data.intent(), e.getMessage());
+ log.warn("Unable to compile intent {} due to:", data.intent(), e);
if (stored.filter(x -> !x.installables().isEmpty()).isPresent()) {
// removing orphaned flows and deallocating resources
return Optional.of(new Withdrawing(processor, IntentData.compiled(data, stored.get().installables())));