[BUGS]log can not be output when use DataSource

From: Chen Huajun <chenhj(at)cn(dot)fujitsu(dot)com>
To: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: [BUGS]log can not be output when use DataSource
Date: 2013-01-17 04:47:07
Message-ID: 50F7824B.5080402@cn.fujitsu.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
pgjdbc_logLevel.patch text/plain 709 bytes

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2013-01-17 09:19:19 Re: [BUGS]log can not be output when use DataSource
Previous Message Dave Cramer 2013-01-16 11:20:20 Re: Support for cert auth in JDBC