How to print exception payload within mule message flow
<logger level="ERROR" message="
#[groovy:message.getExceptionPayload().getRootException().getMessage()]" />
The above code extracts the message related to the cause of exception.
Quite simply:
<logger level="ERROR" message="#[exception]"/>