Log exception message when intent compiling fails

Change-Id: Ied046c31e512504b45ba92023996d400574d5128
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())));