From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Sanjay Bhatia <sbix(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: DEBUG messages |
Date: | 2001-12-06 13:59:00 |
Message-ID: | 17936.1007647140@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Added to TODO:
> * Change DEBUG tag used in server logs
> Seems it should say NOTICE.
It had better *not* be a NOTICE, because there is no attached client
to forward the message to.
There is some confusion in the elog() design between message severity
level and message destination, viz DEBUG goes only to postmaster log,
NOTICE and up go to client and log. And then we have a separate
DebugLevel variable that controls how many places will emit DEBUG
messages. It might be better to unify this into a single mechanism.
Maybe replace
if (DebugLevel > 2)
elog(DEBUG, ...)
with
elog(DEBUG2, ...)
and then have two GUC variables consulted by elog that tell the
minimum message level to send to the log and the client respectively.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Wood | 2001-12-06 14:21:41 | Re: Sparc v Intel |
Previous Message | Jrme Courat | 2001-12-06 13:45:18 | [BASIC FEATURES] stored procedures in Postgresql ? |