Suppress warning on caught exception and properly log the codec
which caused the failure.
Change-Id: I3d92592c361bf02e264a4debd7da61fb8a328aad
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
return codecs;
}
+ @SuppressWarnings("checkstyle:illegalCatch")
void onSchemaContextUpdated(final SchemaContext context) {
final BindingRuntimeContext runtimeContext = BindingRuntimeContext.create(this.classContext, context);
this.latestCodecTree = this.codecFactory.create(runtimeContext);
try {
codecs.onCodecTreeUpdated(this.latestCodecTree);
} catch (final Exception e) {
- LOG.error("Codec creation threw {}", e);
+ LOG.error("Failed to propagate SchemaContext to codec {}", codecs, e);
}
}
}