我有一个运行我们的TestNG测试的Ant脚本,控制台输出量令人难以置信,我们的jenkins作业控制台日志超过了千兆字节。日志中有很多DEBUG输出,我有log4j设置只能记录INFO所以我不确定所有这些其他输入来自哪里。有关如何减少控制台输出量的任何想法?以下是我不关心的一些输出示例:
[testng] 15:45:03.746 [main] DEBUG org.apache.cxf.endpoint.ClientImpl - Interceptors contributed by databinding: []
[testng] 15:45:03.750 [main] DEBUG o.a.cxf.phase.PhaseInterceptorChain - Adding interceptor org.apache.cxf.ws.policy.PolicyOutInterceptor@6279f936 to phase setup
[testng] 15:45:03.750 [main] DEBUG o.a.cxf.phase.PhaseInterceptorChain - Adding interceptor org.apache.cxf.interceptor.MessageSenderInterceptor@35d87abc to phase prepare-send
[testng] 15:45:03.750 [main] DEBUG o.a.cxf.phase.PhaseInterceptorChain - Adding interceptor org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@1761e842 to phase pre-logical
[testng] 15:45:03.750 [main] DEBUG o.a.cxf.phase.PhaseInterceptorChain - Adding interceptor org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@1cd7510c to phase pre-logical
[testng] 15:45:03.750 [main] DEBUG o.a.cxf.phase.PhaseInterceptorChain - Adding interceptor org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@7c09f99e to phase pre-logical
答案 0 :(得分:0)
检查是否使用-d
或-v
选项调用了ant脚本。如果是,您要删除它们。
-v
启用详细输出,而-d
启用调试(甚至更详细)输出。