Log missing application dependency.

Change-Id: I649b3d8efe758ae65f8a821ceea0b50db66e267d
diff --git a/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java b/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java
index ba3056c..b1e5f2e 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java
@@ -308,8 +308,14 @@
     }
 
     private boolean hasPrerequisites(ApplicationDescription app) {
-        return !app.requiredApps().stream().map(this::getId)
-                .anyMatch(id -> id == null || getApplication(id) == null);
+        for (String required : app.requiredApps()) {
+            ApplicationId id = getId(required);
+            if (id == null || getApplication(id) == null) {
+                log.error("{} required for {} not available", required, app.name());
+                return false;
+            }
+        }
+        return true;
     }
 
     private Application create(ApplicationDescription appDesc, boolean updateTime) {