aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/elog.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-06-08 21:16:49 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-06-08 21:16:49 +0000
commit959dc927d37b97df83de0efc29d6c8de9e1ad276 (patch)
tree29d32ef9cf1b5072e49dc8f75c2b4d2bb56505a3 /src/include/utils/elog.h
parent24775c5cd53a3e7a7ea70bd1323103ee1bd223e7 (diff)
downloadpostgresql-959dc927d37b97df83de0efc29d6c8de9e1ad276.tar.gz
postgresql-959dc927d37b97df83de0efc29d6c8de9e1ad276.zip
Preliminary code cleanup in elog(). Split out some code into utility
functions, remove indent support, make sure all strings are marked translatable.
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 */