Commit 7c44e573 authored by Bruce Momjian's avatar Bruce Momjian

Move plpgsql DEBUG from DEBUG2 to DEBUG1 because it is a user-requested

DEBUG.

Fix a few places where DEBUG1 crept in that should have been DEBUG2.
parent e9d69341
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.23 2004/12/31 21:59:29 pgsql Exp $ * $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.24 2005/02/12 23:53:37 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -944,7 +944,7 @@ SlruScanDirectory(SlruCtl ctl, int cutoffPage, bool doDeletions) ...@@ -944,7 +944,7 @@ SlruScanDirectory(SlruCtl ctl, int cutoffPage, bool doDeletions)
if (doDeletions) if (doDeletions)
{ {
snprintf(path, MAXPGPATH, "%s/%s", ctl->Dir, clde->d_name); snprintf(path, MAXPGPATH, "%s/%s", ctl->Dir, clde->d_name);
ereport(DEBUG1, ereport(DEBUG2,
(errmsg("removing file \"%s\"", path))); (errmsg("removing file \"%s\"", path)));
unlink(path); unlink(path);
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.180 2004/12/31 21:59:30 pgsql Exp $ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.181 2005/02/12 23:53:37 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -2065,7 +2065,7 @@ RestoreArchivedFile(char *path, const char *xlogfname, ...@@ -2065,7 +2065,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
* restore, or because the administrator has specified the restore * restore, or because the administrator has specified the restore
* program incorrectly. We have to assume the former. * program incorrectly. We have to assume the former.
*/ */
ereport(DEBUG1, ereport(DEBUG2,
(errmsg("could not restore file \"%s\" from archive: return code %d", (errmsg("could not restore file \"%s\" from archive: return code %d",
xlogfname, rc))); xlogfname, rc)));
...@@ -4893,7 +4893,7 @@ CreateCheckPoint(bool shutdown, bool force) ...@@ -4893,7 +4893,7 @@ CreateCheckPoint(bool shutdown, bool force)
END_CRIT_SECTION(); END_CRIT_SECTION();
if (!shutdown) if (!shutdown)
ereport(DEBUG1, ereport(DEBUG2,
(errmsg("checkpoint starting"))); (errmsg("checkpoint starting")));
CheckPointCLOG(); CheckPointCLOG();
...@@ -4994,7 +4994,7 @@ CreateCheckPoint(bool shutdown, bool force) ...@@ -4994,7 +4994,7 @@ CreateCheckPoint(bool shutdown, bool force)
TruncateSUBTRANS(GetOldestXmin(true)); TruncateSUBTRANS(GetOldestXmin(true));
if (!shutdown) if (!shutdown)
ereport(DEBUG1, ereport(DEBUG2,
(errmsg("checkpoint complete; %d transaction log file(s) added, %d removed, %d recycled", (errmsg("checkpoint complete; %d transaction log file(s) added, %d removed, %d recycled",
nsegsadded, nsegsremoved, nsegsrecycled))); nsegsadded, nsegsremoved, nsegsrecycled)));
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.136 2004/12/31 21:59:50 pgsql Exp $ * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.137 2005/02/12 23:53:42 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1640,7 +1640,7 @@ authident(hbaPort *port) ...@@ -1640,7 +1640,7 @@ authident(hbaPort *port)
return STATUS_ERROR; return STATUS_ERROR;
} }
ereport(DEBUG1, ereport(DEBUG2,
(errmsg("Ident protocol identifies remote user as \"%s\"", (errmsg("Ident protocol identifies remote user as \"%s\"",
ident_user))); ident_user)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment