From 7414d619507ed9e2cdb5113ff77df55feef786c4 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Tue, 25 Aug 1998 21:34:10 +0000 Subject: From: Massimo Dal Zotto > tprintf.patch > > tprintf.patch > > adds functions and macros which implement a conditional trace package > with the ability to change flags and numeric options of running > backends at runtime. > Options/flags can be specified in the command line and/or read from > the file pg_options in the data directory. --- src/backend/utils/error/assert.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/backend/utils/error/assert.c') diff --git a/src/backend/utils/error/assert.c b/src/backend/utils/error/assert.c index 60b913474d..af36729582 100644 --- a/src/backend/utils/error/assert.c +++ b/src/backend/utils/error/assert.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.9 1998/06/18 16:35:38 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.10 1998/08/25 21:34:06 scrappy Exp $ * * NOTE * This should eventually work with elog(), dlog(), etc. @@ -21,6 +21,7 @@ #include "utils/module.h" #include "utils/exc.h" +#include "utils/trace.h" int ExceptionalCondition(char *conditionName, @@ -39,7 +40,7 @@ ExceptionalCondition(char *conditionName, || !PointerIsValid(fileName) || !PointerIsValid(exceptionP)) { - fprintf(stderr, "ExceptionalCondition: bad arguments\n"); + EPRINTF("TRAP: ExceptionalCondition: bad arguments\n"); ExcAbort(exceptionP, (ExcDetail) detail, @@ -48,9 +49,9 @@ ExceptionalCondition(char *conditionName, } else { - fprintf(stderr, - "%s(\"%s:%s\", File: \"%s\", Line: %d)\n", - exceptionP->message, conditionName, detail == NULL ? "" : detail, + EPRINTF("TRAP: %s(\"%s:%s\", File: \"%s\", Line: %d)\n", + exceptionP->message, conditionName, + (detail == NULL ? "" : detail), fileName, lineNumber); } -- cgit v1.2.1