jfinal连mysql总是打印DEBUG BasicResourcePool信息,是怎么回事?求高手进

65242847 发布于 2013/11/30 21:12
阅读 2K+
收藏 0

总是滚动打印,查了好久也没查到是怎么回事,操作数据库没问题,就是不停的打印,求解决方法,打印信息如下:

2013-11-30 20:38:03,347 [Timer-9] DEBUG BasicResourcePool : BEGIN check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@928739]
2013-11-30 20:38:03,350 [Timer-9] DEBUG BasicResourcePool : FINISHED check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@928739]
2013-11-30 20:38:04,047 [Timer-10] DEBUG BasicResourcePool$CullTask : Checking f
or expired resources - Sat Nov 30 20:38:04 CST 2013 [com.mchange.v2.resourcepool
.BasicResourcePool@11cccce]



2013-11-30 20:50:11,282 [Timer-20] DEBUG BasicResourcePool : BEGIN check for expired resources.  [com.mchange.v2.resourcepool.BasicResourcePool@16bf9ce]

2013-11-30 20:55:59,972 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager :
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@590510.acquireResource() returning.
2013-11-30 20:55:59,975 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG BasicResourcePool : trace com.mchange.v2.resourcepool.BasicResourcePool@20dcb7 [managed: 4, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1786b98)
2013-11-30 20:55:59,981 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG BasicResourcePool : trace com.mchange.v2.resourcepool.BasicResourcePool@20dcb7 [managed: 5, unused: 5, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1786b98)
2013-11-30 20:55:59,984 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG BasicResourcePool : decremented pending_acquires: 1



加载中
0
65242847
65242847
没人遇到这种情况吗?
0
dreamers
dreamers

这个应该不关jfinal的问题吧,是cp30自己打印的,实在不想看见这些的话,可以设置一下:

log4j.logger.com.mchange.v2.c3p0=SEVERE

0
65242847
65242847

引用来自“ljy520yzy”的答案

这个应该不关jfinal的问题吧,是cp30自己打印的,实在不想看见这些的话,可以设置一下:

log4j.logger.com.mchange.v2.c3p0=SEVERE

非常感谢,之前没用过c3p0,还以为是哪个环节有问题。不过我没加你写的那句,我改log级别改成error,就不打印了
返回顶部
顶部