Upgraded spotbugs is finding more violations, fix them up.
Change-Id: I8956c5b7a6eef38286f4c2b6fb07ca6a775e6965
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
90f03193700920e656596d2a2257802cb22a90c7)
registry.register(fullName, metric);
} catch (IllegalArgumentException e) {
// already registered - shouldn't happen here since we check above...
- LOG.debug("Unable to register '{}' in metrics registry: {}", e);
+ LOG.debug("Unable to register '{}' in metrics registry", fullName);
}
}
for (final Entry<Object, Object> entry : properties.entrySet()) {
final String key = (String) entry.getKey();
if (!key.startsWith(ENTITY_TYPE_PREFIX)) {
- LOG.debug("Ignoring non-conforming property key : {}");
+ LOG.debug("Ignoring non-conforming property key : {}", key);
continue;
}
try {
DataTreeCandidates.applyToModification(modification, change);
} catch (SchemaValidationFailedException e) {
- LOG.error("Validation failed {}", e);
+ LOG.error("Validation failed", e);
}
}