Skip to content

Commit

Permalink
typo and incomplete log message for HostBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacchella committed May 20, 2014
1 parent 52d534b commit 9dff5eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jrds/configuration/HostBuilder.java
Expand Up @@ -487,11 +487,12 @@ private void setAttributes(JrdsElement probeNode, Object o, Map<String, Property
String name = attrNode.getAttribute("name");
PropertyDescriptor bean = beans.get(name);
if(bean == null) {
logger.error("Unknonw bean " + name);
//Context[0] should be the host
logger.error("Unknown bean '" + name + "' for " + context[0]);
continue;
}
String textValue = Util.parseTemplate(attrNode.getTextContent(), context);
logger.trace(Util.delayedFormatString("Fond attribute %s with value %s", name, textValue));
logger.trace(Util.delayedFormatString("Found attribute %s with value %s", name, textValue));
try {
Constructor<?> c = bean.getPropertyType().getConstructor(String.class);
Object value = c.newInstance(textValue);
Expand Down

0 comments on commit 9dff5eb

Please sign in to comment.