Re: [BUGS]log can not be output when use DataSource
От | Dave Cramer |
---|---|
Тема | Re: [BUGS]log can not be output when use DataSource |
Дата | |
Msg-id | CADK3HHJaWMQCApXvJzQiH7rf+c+x-J8LBYbs8RvReAYi=Ojz2g@mail.gmail.com обсуждение исходный текст |
Ответ на | [BUGS]log can not be output when use DataSource (Chen Huajun <chenhj@cn.fujitsu.com>) |
Ответы |
Re: [BUGS]log can not be output when use DataSource
|
Список | pgsql-jdbc |
It's early here but I can't see how this makes it work. It appears that the code that is being replaced is exactly the same except that there is an if statement in front of it ?
On Wed, Jan 16, 2013 at 11:47 PM, Chen Huajun <chenhj@cn.fujitsu.com> wrote:
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
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
В списке pgsql-jdbc по дате отправления: