Created
April 21, 2014 15:17
-
-
Save hlship/11145645 to your computer and use it in GitHub Desktop.
C3P0 tends to spit out some debugging information at startup. This offends me. I found a way to stop it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; This is a hook for C3P0 to get rid of some garbage it logs to System.err on startup. | |
(let [err System/err] | |
(try | |
(System/setErr (PrintStream. (NullOutputStream.))) | |
(Class/forName "com.mchange.v2.c3p0.cfg.C3P0Config") | |
(finally | |
(System/setErr err)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NullOutputStream is from org.apache.commons.io.output (commons-io 2.4)