Hello everyone,
I'm using the felix log service, and I noticed that exceptions stracktraces
are not dumped, when invoking the felix "log" shell command.
Indeed, in the shell, the LogCommandImpl.display method is currently doing
this:
if (entry.getException() != null)
{
buffer.append(entry.getException().getClass().getName()).append(":
").append(
entry.getException().getMessage());
}
And, currently, it's impossible to inspect stacktraces, using the "log"
command.
So, would you be ok for the following fix ->
if (entry.getException() != null)
{
StringWriter writer = new StringWriter();
PrintWriter pw = new PrintWriter(writer);
entry.getException().printStackTrace(pw);
buffer.append(writer.toString());
}
thanks;
/pierre