You need to turn on message history before routes are added. So it may be that your custom before method is too late.
On Fri, Mar 13, 2020 at 3:40 PM Remco Schoen <[email protected]> wrote: > > Hi, > > Before Camel 3.1.0 I was able to dump my complete message history with this > method: > > MessageHelper.dumpMessageHistoryStacktrace(exchange, new > DefaultExchangeFormatter(), false) > > According to the change document I try to activate the message history: > > @Before > void init() { > context.setMessageHistory(true) > context.start() > } > > But when it prints it says: Message History (complete message history is > disabled). > > Should this work with CamelTestSupport? > > Kind regards, > > Remco -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
