When we fail to construct a schema context, we do not log any sensible
cause at all, leaving not nearly enough evidence to pin down the
problem. Step one is to start reporting thrown exceptions.
Change-Id: Ie8ccc8f77eb18dfc385d13b81b5c5094866df177
Signed-off-by: Robert Varga <rovarga@cisco.com>
}
currentSourceContext = context;
} catch (Exception e) {
- LOG.error("Could not create schema context for {} ",context.getValidSources());
+ LOG.error("Could not create schema context for {} ", context.getValidSources(), e);
}
return Optional.absent();
}