aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2007-11-05 00:00:34 +0000
committerNeil Conway <neilc@samurai.com>2007-11-05 00:00:34 +0000
commit9a48d22ef5e9265e46ff68fe28703be09460da09 (patch)
treeeef3e9a0822ac2a6a8e87a9fe7a26f0922cb2779 /src
parent1e941153a24b2c4d2eeb04682022351da00f889e (diff)
downloadpostgresql-9a48d22ef5e9265e46ff68fe28703be09460da09.tar.gz
postgresql-9a48d22ef5e9265e46ff68fe28703be09460da09.zip
Use LOG instead of DEBUG2 for logging invalid cancel requests. (That is,
cancel requests with an incorrect key, or with a non-existent PID). Per recent discussion on -hackers.
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/postmaster.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index ff4ee39ddaf..db72f94abf4 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.543 2007/10/26 21:50:10 mha Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.544 2007/11/05 00:00:34 neilc Exp $
*
* NOTES
*
@@ -1709,17 +1709,17 @@ processCancelRequest(Port *port, void *pkt)
}
else
/* Right PID, wrong key: no way, Jose */
- ereport(DEBUG2,
- (errmsg_internal("bad key in cancel request for process %d",
- backendPID)));
+ ereport(LOG,
+ (errmsg("bad key in cancel request for process %d",
+ backendPID)));
return;
}
}
/* No matching backend */
- ereport(DEBUG2,
- (errmsg_internal("bad pid in cancel request for process %d",
- backendPID)));
+ ereport(LOG,
+ (errmsg("bad pid in cancel request for process %d",
+ backendPID)));
}
/*