在我的 Apache Camel/Spring Boot 应用程序控制台中,我看到大量的骆驼跟踪,从下面开始。根据 thiscamel.springboot.tracing=false 应该禁用它,但它不起作用。寻找禁用跟踪的正确方法。
[http-nio-0.0.0.0-8080-exec-1] INFO org.apache.camel.Tracing
如果您使用 logback.xml,
尝试一下:
<logger name="org.apache.camel" level="Error" additivity="false">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</logger>
如果是 log4j.properties 那么:
log4j.org.apache.camel=Error
通过从
<camel:camelContext trace="true">
中删除trace="true" 解决了问题
camel:
springboot:
tracing: false