[BUGS]log can not be output when use DataSource - Mailing list pgsql-jdbc

From Chen Huajun
Subject [BUGS]log can not be output when use DataSource
Date
Msg-id 50F7824B.5080402@cn.fujitsu.com
Whole thread Raw
Responses Re: [BUGS]log can not be output when use DataSource
List pgsql-jdbc
Hi,

In the following code,log can not be output as expected.

-------------------------------------
org.postgresql.Driver.setLogLevel(org.postgresql.Driver.DEBUG);
DataSource source = (DataSource)new InitialContext().lookup("DataSource");
Connection con = source.getConnection();
-------------------------------------

It's seems to be a problem,
I have made a small patch to fix it.
Hopefully this useful.

--
Best Regards,
Chen Huajun


Attachment

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Support for cert auth in JDBC
Next
From: Dave Cramer
Date:
Subject: Re: [BUGS]log can not be output when use DataSource