Skip to content

Commit 7c44e57

Browse files
committed
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.
1 parent e9d6934 commit 7c44e57

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/backend/access/transam/slru.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
4949
* Portions Copyright (c) 1994, Regents of the University of California
5050
*
51-
* $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.23 2004/12/31 21:59:29 pgsql Exp $
51+
* $PostgreSQL: pgsql/src/backend/access/transam/slru.c,v 1.24 2005/02/12 23:53:37 momjian Exp $
5252
*
5353
*-------------------------------------------------------------------------
5454
*/
@@ -944,7 +944,7 @@ SlruScanDirectory(SlruCtl ctl, int cutoffPage, bool doDeletions)
944944
if (doDeletions)
945945
{
946946
snprintf(path, MAXPGPATH, "%s/%s", ctl->Dir, clde->d_name);
947-
ereport(DEBUG1,
947+
ereport(DEBUG2,
948948
(errmsg("removing file \"%s\"", path)));
949949
unlink(path);
950950
}

src/backend/access/transam/xlog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.180 2004/12/31 21:59:30 pgsql Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.181 2005/02/12 23:53:37 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2065,7 +2065,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
20652065
* restore, or because the administrator has specified the restore
20662066
* program incorrectly. We have to assume the former.
20672067
*/
2068-
ereport(DEBUG1,
2068+
ereport(DEBUG2,
20692069
(errmsg("could not restore file \"%s\" from archive: return code %d",
20702070
xlogfname, rc)));
20712071

@@ -4893,7 +4893,7 @@ CreateCheckPoint(bool shutdown, bool force)
48934893
END_CRIT_SECTION();
48944894

48954895
if (!shutdown)
4896-
ereport(DEBUG1,
4896+
ereport(DEBUG2,
48974897
(errmsg("checkpoint starting")));
48984898

48994899
CheckPointCLOG();
@@ -4994,7 +4994,7 @@ CreateCheckPoint(bool shutdown, bool force)
49944994
TruncateSUBTRANS(GetOldestXmin(true));
49954995

49964996
if (!shutdown)
4997-
ereport(DEBUG1,
4997+
ereport(DEBUG2,
49984998
(errmsg("checkpoint complete; %d transaction log file(s) added, %d removed, %d recycled",
49994999
nsegsadded, nsegsremoved, nsegsrecycled)));
50005000

src/backend/libpq/hba.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.136 2004/12/31 21:59:50 pgsql Exp $
13+
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.137 2005/02/12 23:53:42 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -1640,7 +1640,7 @@ authident(hbaPort *port)
16401640
return STATUS_ERROR;
16411641
}
16421642

1643-
ereport(DEBUG1,
1643+
ereport(DEBUG2,
16441644
(errmsg("Ident protocol identifies remote user as \"%s\"",
16451645
ident_user)));
16461646

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy