Re: Unwanted debug messages

From: Wenceslao Grillo <wenceslao(at)leandergames(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Re: Unwanted debug messages
Date: 2013-08-06 14:48:04
Message-ID: 52010CA4.8070807@leandergames.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Thanks Adrian. Well, I guess I should file a feature request with the
psycopg2 team then... because all the work-arounds I can think of for
this problem are really ugly...
Cheers:

Wences

On 06/08/2013 10:34, Adrian Klaver wrote:
> On 08/06/2013 06:25 AM, Joe Abbate wrote:
>> Hola Wences,
>>
>> On 06/08/13 09:05, Wenceslao Grillo wrote:
>>> thanks for your prompt reply. You are right, I changed the value of
>>> client_min_messages in the postgresql.conf file to "error" and the
>>> messages stopped appearing.
>>> Do you know of any way to prevent those messages from showing in the
>>> console even if the server sends them? It's not in every server that I
>>> will have that level of privilege.
>>
>> I think you should check log_destination in postgresql.conf.
>
> That would change the destination of the messages coming from
> log_min_messages and still would require that the OP had privileges on
> the server. As far as I know it up to the client to deal with
> client_min_messages and I do not think psycopg2 has a way of
> throttling that.
>
>
>>
>>> Thanks again:
>>>
>>> Wences
>>>
>>> PS: If you don't mind, I would like to copy your reply, with due
>>> attribution to my question at Stack Overflow, so it might also help
>>> others.
>>
>> I've answered your question on SO myself :-)
>>
>> Saludos,
>>
>>
>> Joe (otro porteño)
>>
>>
>
>

In response to

Browse psycopg by date

  From Date Subject
Next Message Joe Abbate 2013-08-06 16:10:16 Re: Unwanted debug messages
Previous Message Wenceslao Grillo 2013-08-06 14:35:11 Re: Unwanted debug messages