I was catching an exception and trying to write the stack trace to the logs like this:
log.warn(e.getMessage());
But all it said was
Usually:
log.warn("message", e);
But it depends on your logging framework too.