Add more error log

Change-Id: I71ac5be4a5ca5b7ab4acc8f71ebefd95f8bfb3c1
This commit is contained in:
Yuta HIGUCHI 2018-02-12 16:40:05 -08:00 committed by Yuta HIGUCHI
parent 4c3fbcf3e1
commit dbc08c08c3
2 changed files with 3 additions and 1 deletions

View File

@ -276,7 +276,8 @@ public final class ResourceIdParser {
String key = keys[i];
String[] el = keys[i].split(NM_CHK);
if (el.length != 3) {
throw new FailedException("Malformed event subject, cannot parse");
throw new FailedException("Malformed event subject, cannot parse " +
key + " in " + dpath);
}
try {
resBldr.addKeyLeaf(el[0], el[1], el[2]);

View File

@ -495,6 +495,7 @@ public class DistributedDynamicConfigStore
//log.info("UNKNOWN operation in store");
type = UNKNOWN_OPRN;
}
// FIXME don't use ResourceIdParser
path = ResourceIdParser.getResId(event.path().pathElements());
notifyDelegate(new DynamicConfigEvent(type, path));
}