Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3e4708c

Browse files
committed
libpq++ Makefile uses -DDEBUG to turn on debugging trace to
/tmp/trace.out. However, elog.h uses DEBUG as a log-level flag. As a result, tracing is turned on even if the libpq++.so is built with DEBUG commented out in the Makefile. This patch changes libpq++ to use DEBUGFILE instead (which is not defined anywhere else). Oliver Elphick
1 parent 1f3122e commit 3e4708c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/interfaces/libpq++/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1994, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.21 2000/03/08 01:58:37 momjian Exp $
9+
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.22 2000/03/16 15:34:36 momjian Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -34,7 +34,7 @@ CXXFLAGS+= -I$(SRCDIR)/backend \
3434
-I$(SRCHEADERDIR) \
3535
-I$(LIBPQDIR)
3636

37-
#CXXFLAGS+= -DDEBUG
37+
#CXXFLAGS+= -DDEBUGFILE
3838

3939
ifdef KRBVERS
4040
CXXFLAGS+= $(KRBFLAGS)

src/interfaces/libpq++/pgconnection.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Copyright (c) 1994, Regents of the University of California
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.6 1999/05/30 15:17:56 tgl Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.7 2000/03/16 15:34:36 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -49,7 +49,7 @@ PgConnection::PgConnection(const char* conninfo)
4949
PgConnection::~PgConnection()
5050
{
5151
// Terminate the debugging output if it was turned on
52-
#if defined(DEBUG)
52+
#if defined(DEBUGFILE)
5353
PQuntrace(pgConn);
5454
#endif
5555

@@ -68,7 +68,7 @@ ConnStatusType PgConnection::Connect(const char* conninfo)
6868
{
6969
ConnStatusType cst;
7070
// Turn the trace on
71-
#if defined(DEBUG)
71+
#if defined(DEBUGFILE)
7272
FILE *debug = fopen("/tmp/trace.out","w");
7373
PQtrace(pgConn, debug);
7474
#endif

0 commit comments

Comments
 (0)