postgresql - How to turn off messages from c3p0 while using Clojure jdbc -


i using clojure jdbc , c3p0 connection pooling.

before running query , startting of application prints out message follows console.

jul 11, 2016 6:22:48 pm com.mchange.v2.log.mlog  info: mlog clients using java 1.4+ standard logging. jul 11, 2016 6:22:48 pm com.mchange.v2.c3p0.c3p0registry  info: initializing c3p0-0.9.5.2 [built 08-december-2015 22:06:04 -0800; debug? true; trace: 10]  jul 11, 2016 6:22:48 pm com.mchange.v2.c3p0.impl.abstractpoolbackeddatasource  info: initializing c3p0 pool... com.mchange.v2.c3p0.combopooleddatasource [ acquireincrement -> 3, acquireretryattempts -> 30, acquireretrydelay -> 1000, autocommitonclose -> false, automatictesttable -> null, breakafteracquirefailure -> false, checkouttimeout -> 0, connectioncustomizerclassname -> null, connectiontesterclassname -> com.mchange.v2.c3p0.impl.defaultconnectiontester, contextclassloadersource -> caller, datasourcename -> z8kflt9h1ohpn8xry5id4|663c9e7a, debugunreturnedconnectionstacktraces -> false, description -> null, driverclass -> org.postgresql.driver, extensions -> {}, factoryclasslocation -> null, forceignoreunresolvedtransactions -> false, forcesynchronouscheckins -> false, forceusenameddriverclass -> false, identitytoken -> z8kflt9h1ohpn8xry5id4|663c9e7a, idleconnectiontestperiod -> 0, initialpoolsize -> 3, jdbcurl -> jdbc:postgresql://localhost:5432/postgres, maxadministrativetasktime -> 0, maxconnectionage -> 0, maxidletime -> 10800, maxidletimeexcessconnections -> 1800, maxpoolsize -> 15, maxstatements -> 0, maxstatementsperconnection -> 0, minpoolsize -> 3, numhelperthreads -> 3, preferredtestquery -> null, privilegespawnedthreads -> false, properties -> {user=******}, propertycycle -> 0, statementcachenumdeferredclosethreads -> 0, testconnectiononcheckin -> false, testconnectiononcheckout -> false, unreturnedconnectiontimeout -> 0, useroverrides -> {}, usestraditionalreflectiveproxies -> false ] 

is there way turn off, example while specifying datasource?

(defn pool   [spec]   (let [cpds (doto (combopooleddatasource.)                (.setdriverclass (:classname spec))                (.setjdbcurl (str "jdbc:" (:subprotocol spec) ":" (:subname spec)))                (.setuser (:user spec))                ;; expire excess connections after 30 minutes of inactivity:                (.setmaxidletimeexcessconnections (* 30 60))                ;; expire connections after 3 hours of inactivity:                (.setmaxidletime (* 3 60 60)))]     {:datasource cpds})) 

also had following in code.

(defn -main   "jdbc cs425 assignment."   [path]   (system/setproperties    (doto (java.util.properties. (system/getproperties))      (.put "com.mchange.v2.log.mlog" "com.mchange.v2.log.fallbackmlog")      (.put "com.mchange.v2.log.fallbackmlog.default_cutoff_level" "off")))   ;;(check-for-tables pooled-db path)   (run-queries)) 


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -