Re: Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)

From: Jeremy Whiting <jwhiting(at)redhat(dot)com>
To: Sergey Kim <skim(at)odin(dot)com>
Cc: Brad DeJong <Brad(dot)Dejong(at)infor(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>, Sergey Onuchin <sonuchin(at)odin(dot)com>
Subject: Re: Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
Date: 2016-12-16 13:34:02
Message-ID: c5f489a1-3e37-438b-67da-560299a6de35@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi Sergey,
The bad news is this will not be going into the mainline. I've had the
discussion in the past. The community decision at the time was devs
should do a local build to set a PrintWriter. I bear no grudges btw on
this decision. There are compelling reasons for it.

So no, it won't be in any Maven repo any time soon.
It exists on a branch on GitHub. Floating in the digital ether going
nowhere. But you are welcome to copy and paste the code to build your
own driver artifact.

Regards,
Jeremy

On 15/12/16 18:47, Sergey Kim wrote:
>
> Hi Jeremy,
>
>
> thank you for the good news.
>
> But will it able to receive the compiled version of the driver? Also
> it seems it should be published in public maven repositories. Right?
>
>
>
> Best Regards,
> Sergey Kim
>
> ------------------------------------------------------------------------
> *From:* Jeremy Whiting <jwhiting(at)redhat(dot)com>
> *Sent:* Thursday, December 15, 2016 7:03:20 PM
> *To:* Brad DeJong; Sergey Kim
> *Cc:* pgsql-jdbc(at)postgresql(dot)org; Sergey Onuchin
> *Subject:* Re: [JDBC] Re: logging bug in JDBC driver
> (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
>
> On 09/12/16 14:14, Brad DeJong wrote:
>>
>> Sergey Kim wrote:
>>
>> > Brad DeJong wrote:
>>
>> >> Sergey Kim wrote:
>>
>> >>> ... (loglevel) parameter doesn't produce any messages ...
>>
>> >> Please verify that your application calls
>> java.sql.DriverManager.setLogWriter(PrintWriter) to set the log
>> destination.
>>
>> > The following fix gives solution:
>> java.sql.DriverManager.setLogWriter(new java.io.PrintWriter(System.out));
>>
>> > What should be do in order to preserve the code untouched and still
>> have to JDBC logging available?
>>
>>
>>
>> Sorry, that is a more difficult question. I am not aware of any way
>> to set the log writer with a configuration parameter rather than by
>> calling setLogWriter().
>>
>>
>>
>> As for the change in pgjdbc behavior, I suggest creating an issue on
>> https://github.com/pgjdbc/pgjdbc.
>>
>>
>>
>
> This has been raised before. See [1].
>
> The advice to call setLogWriter() along with setLogLevel(...) is
> necessary if using the api is an option.
>
> That does not work for url property configuring. I have a commit
> that adds the ability to load a logLevel property on the URL here [2].
> Based on 1212.
>
> Jeremy
>
> [1] https://github.com/pgjdbc/pgjdbc/issues/452
> [2] https://github.com/whitingjr/pgjdbc/tree/logLevel2
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sergey Kim 2016-12-18 19:41:17 Re: Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)
Previous Message Jeremy Whiting 2016-12-16 13:31:47 Re: Re: logging bug in JDBC driver (https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar)