diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-03-06 06:10:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-03-06 06:10:59 +0000 |
commit | 92288a1cf9490be3835dc8524ee2ba407f1b885a (patch) | |
tree | c4fe79ee2cb5cb8fa3385580c6cf431a97c2fc48 /src/pl/plpython/plpython.h | |
parent | 22ebad9e39e268c9d4c6c2e422af727058830089 (diff) | |
download | postgresql-92288a1cf9490be3835dc8524ee2ba407f1b885a.tar.gz postgresql-92288a1cf9490be3835dc8524ee2ba407f1b885a.zip |
Change made to elog:
o Change all current CVS messages of NOTICE to WARNING. We were going
to do this just before 7.3 beta but it has to be done now, as you will
see below.
o Change current INFO messages that should be controlled by
client_min_messages to NOTICE.
o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
to always go to the client.
o Remove INFO from the client_min_messages options and add NOTICE.
Seems we do need three non-ERROR elog levels to handle the various
behaviors we need for these messages.
Regression passed.
Diffstat (limited to 'src/pl/plpython/plpython.h')
-rw-r--r-- | src/pl/plpython/plpython.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pl/plpython/plpython.h b/src/pl/plpython/plpython.h index e62d036c83f..c2f6bba6f45 100644 --- a/src/pl/plpython/plpython.h +++ b/src/pl/plpython/plpython.h @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/pl/plpython/Attic/plpython.h,v 1.5 2001/11/05 17:46:39 momjian Exp $ */ +/* $Header: /cvsroot/pgsql/src/pl/plpython/Attic/plpython.h,v 1.6 2002/03/06 06:10:48 momjian Exp $ */ #ifndef PLPYTHON_H #define PLPYTHON_H @@ -16,21 +16,21 @@ #define RAISE_EXC(V) siglongjmp(Warn_restart, (V)) #else #define RESTORE_N_EXC(N) do { \ - elog(NOTICE, "exception (%d,%d) restore at %s:%d",\ + elog(WARNING, "exception (%d,%d) restore at %s:%d",\ PLy_call_level, exc_save_calls, __FUNCTION__, (__LINE__));\ exc_save_calls -= 1; \ memcpy(&Warn_restart, &(buf_##N), sizeof(sigjmp_buf)); } while (0) #define SAVE_N_EXC(N) do { \ exc_save_calls += 1; \ - elog(NOTICE, "exception (%d,%d) save at %s:%d", \ + elog(WARNING, "exception (%d,%d) save at %s:%d", \ PLy_call_level, exc_save_calls, __FUNCTION__, (__LINE__)); \ memcpy(&(buf_##N), &Warn_restart, sizeof(sigjmp_buf)); } while (0) #define RERAISE_N_EXC(N) do { \ - elog(NOTICE, "exception (%d,%d) reraise at %s:%d", \ + elog(WARNING, "exception (%d,%d) reraise at %s:%d", \ PLy_call_level, exc_save_calls, __FUNCTION__, (__LINE__)); \ siglongjmp(Warn_restart, rv_##N); } while (0) #define RAISE_EXC(V) do { \ - elog(NOTICE, "exception (%d,%d) raise at %s:%d", \ + elog(WARNING, "exception (%d,%d) raise at %s:%d", \ PLy_call_level, exc_save_calls, __FUNCTION__, (__LINE__)); \ siglongjmp(Warn_restart, (V)); } while (0) #endif @@ -43,8 +43,8 @@ #if DEBUG_LEVEL #define CALL_LEVEL_INC() do { PLy_call_level += 1; \ - elog(NOTICE, "Level: %d", PLy_call_level); } while (0) -#define CALL_LEVEL_DEC() do { elog(NOTICE, "Level: %d", PLy_call_level); \ + elog(DEBUG3, "Level: %d", PLy_call_level); } while (0) +#define CALL_LEVEL_DEC() do { elog(DEBUG3, "Level: %d", PLy_call_level); \ PLy_call_level -= 1; } while (0) #else #define CALL_LEVEL_INC() do { PLy_call_level += 1; } while (0) @@ -54,10 +54,10 @@ /* temporary debugging macros */ #if DEBUG_LEVEL -#define enter() elog(NOTICE, "Enter(%d): %s", func_enter_calls++,__FUNCTION__) -#define leave() elog(NOTICE, "Leave(%d): %s", func_leave_calls++,__FUNCTION__) -#define mark() elog(NOTICE, "Mark: %s:%d", __FUNCTION__, __LINE__); -#define refc(O) elog(NOTICE, "Ref<%p>:<%d>:%s:%d", (O), (((O) == NULL) ? -1 : (O)->ob_refcnt), __FUNCTION__, __LINE__) +#define enter() elog(DEBUG3, "Enter(%d): %s", func_enter_calls++,__FUNCTION__) +#define leave() elog(DEBUG3, "Leave(%d): %s", func_leave_calls++,__FUNCTION__) +#define mark() elog(DEBUG3, "Mark: %s:%d", __FUNCTION__, __LINE__); +#define refc(O) elog(DEBUG3, "Ref<%p>:<%d>:%s:%d", (O), (((O) == NULL) ? -1 : (O)->ob_refcnt), __FUNCTION__, __LINE__) #else #define enter() #define leave() |