aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/elog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/elog.h')
-rw-r--r--src/include/utils/elog.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h
index 583897cc41f..4c98f4119ca 100644
--- a/src/include/utils/elog.h
+++ b/src/include/utils/elog.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: elog.h,v 1.26 2001/03/22 04:01:11 momjian Exp $
+ * $Id: elog.h,v 1.27 2001/06/08 21:16:49 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -15,36 +15,29 @@
#define ELOG_H
/* Error level codes */
-#define NOTICE 0 /* random info - no special action */
+#define NOTICE 0 /* random info, sent to frontend */
#define ERROR (-1) /* user error - return to known state */
#define FATAL 1 /* fatal error - abort process */
#define REALLYFATAL 2 /* take down the other backends with me */
-#define STOP REALLYFATAL
#define DEBUG (-2) /* debug message */
+
+/* temporary nonsense... */
+#define STOP REALLYFATAL
#define LOG DEBUG
-#define NOIND (-3) /* debug message, don't indent as far */
/* Configurable parameters */
#ifdef ENABLE_SYSLOG
extern int Use_syslog;
-
#endif
extern bool Log_timestamp;
extern bool Log_pid;
-#ifndef __GNUC__
-extern void elog(int lev, const char *fmt,...);
-
-#else
+extern void elog(int lev, const char *fmt,...)
/* This extension allows gcc to check the format string for consistency with
the supplied arguments. */
-extern void
-elog(int lev, const char *fmt,...)
__attribute__((format(printf, 2, 3)));
-#endif
-
extern int DebugFileOpen(void);
#endif /* ELOG_H */