log more details on unsupported installable error

Change-Id: I394123348e50d4c2bfd3c0fffda0707c30eefdf5
This commit is contained in:
Yuta HIGUCHI 2017-01-27 14:35:13 -08:00 committed by Pier Luigi Ventre
parent b40e945875
commit d5324f3d61

View File

@ -326,9 +326,9 @@ class IntentInstaller {
List<Intent> installIntents = Lists.newArrayList(install.installables());
checkState(uninstallIntents.stream().allMatch(this::isSupported),
"Unsupported installable intents detected");
"Unsupported installable intents detected: %s", uninstallIntents);
checkState(installIntents.stream().allMatch(this::isSupported),
"Unsupported installable intents detected");
"Unsupported installable intents detected: %s", installIntents);
//TODO: Filter FlowObjective intents
// Filter out same intents and intents with same flow rules
@ -388,7 +388,7 @@ class IntentInstaller {
IntentData data = intentData.get();
List<Intent> intentsToApply = data.installables();
checkState(intentsToApply.stream().allMatch(this::isSupported),
"Unsupported installable intents detected");
"Unsupported installable intents detected: %s", intentsToApply);
if (direction == Direction.ADD) {
trackerService.addTrackedResources(data.key(), data.intent().resources());