public void start() throws Exception {
ObjectHelper.notNull(camelContext, "CamelContext", this);
// register our event notifier
camelContext.getManagementStrategy().addEventNotifier(new DebugEventNotifier());
Tracer tracer = Tracer.getTracer(camelContext);
if (tracer == null) {
// tracer is disabled so enable it silently so we can leverage it to trace the Exchanges for us
tracer = Tracer.createTracer(camelContext);
tracer.setLogLevel(LoggingLevel.OFF);
camelContext.addService(tracer);
camelContext.addInterceptStrategy(tracer);
}
// make sure tracer is enabled so the debugger can leverage the tracer for debugging purposes
tracer.setEnabled(true);
}