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 13:05:57
Message-ID: 5200F4B5.90205@leandergames.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Hello Joe,
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.
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.

On 05/08/2013 15:40, Joe Abbate wrote:
> On 05/08/13 14:05, Wenceslao Grillo wrote:
>
>> conn = psycopg2.connect(host="42.42.42.42", port=5432,
>> database="myDB", user="myUser", password="********")
>> if conn is None:
>> sys.exit("Connection failed")
>> print "Connection successful"
>>
>> Prints the following:
>>
>> DEBUG: CommitTransaction
>> DEBUG: name: unnamed; blockState: STARTED; state: INPROGR,
>> xid/subid/cid: 0/1/0, nestlvl: 1, children:
>> Connection successful
> Those messages are from Postgres itself. The second one is a DEBUG3
> message in the module backend/access/transam/xact.c. I'd look at the
> logging settings in your postgresql.conf.
>
> Joe
>
>

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Joe Abbate 2013-08-06 13:25:47 Re: Unwanted debug messages
Previous Message Joe Abbate 2013-08-05 18:40:01 Re: Unwanted debug messages