Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
958a1c2a
Commit
958a1c2a
authored
Apr 04, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of level ordering and add missing LOG entry.
parent
f5648c20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
34 deletions
+37
-34
src/backend/utils/error/elog.c
src/backend/utils/error/elog.c
+37
-34
No files found.
src/backend/utils/error/elog.c
View file @
958a1c2a
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.9
4 2002/03/06 06:10:2
4 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.9
5 2002/04/04 04:43:4
4 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -359,11 +359,11 @@ elog(int lev, const char *fmt,...)
switch
(
lev
)
{
case
DEBUG1
:
case
DEBUG2
:
case
DEBUG3
:
case
DEBUG4
:
case
DEBUG5
:
case
DEBUG4
:
case
DEBUG3
:
case
DEBUG2
:
case
DEBUG1
:
syslog_level
=
LOG_DEBUG
;
break
;
case
LOG
:
...
...
@@ -845,16 +845,16 @@ bool
check_server_min_messages
(
const
char
*
lev
)
{
if
(
strcasecmp
(
lev
,
"debug"
)
==
0
||
strcasecmp
(
lev
,
"debug1"
)
==
0
||
strcasecmp
(
lev
,
"debug2"
)
==
0
||
strcasecmp
(
lev
,
"debug3"
)
==
0
||
strcasecmp
(
lev
,
"debug4"
)
==
0
||
strcasecmp
(
lev
,
"debug5"
)
==
0
||
strcasecmp
(
lev
,
"log"
)
==
0
||
strcasecmp
(
lev
,
"debug4"
)
==
0
||
strcasecmp
(
lev
,
"debug3"
)
==
0
||
strcasecmp
(
lev
,
"debug2"
)
==
0
||
strcasecmp
(
lev
,
"debug1"
)
==
0
||
strcasecmp
(
lev
,
"info"
)
==
0
||
strcasecmp
(
lev
,
"notice"
)
==
0
||
strcasecmp
(
lev
,
"warning"
)
==
0
||
strcasecmp
(
lev
,
"error"
)
==
0
||
strcasecmp
(
lev
,
"log"
)
==
0
||
strcasecmp
(
lev
,
"fatal"
)
==
0
||
strcasecmp
(
lev
,
"panic"
)
==
0
)
return
true
;
...
...
@@ -865,19 +865,17 @@ void
assign_server_min_messages
(
const
char
*
lev
)
{
if
(
strcasecmp
(
lev
,
"debug"
)
==
0
)
server_min_messages
=
DEBUG1
;
else
if
(
strcasecmp
(
lev
,
"debug1"
)
==
0
)
server_min_messages
=
DEBUG1
;
else
if
(
strcasecmp
(
lev
,
"debug2"
)
==
0
)
server_min_messages
=
DEBUG2
;
else
if
(
strcasecmp
(
lev
,
"debug3"
)
==
0
)
server_min_messages
=
DEBUG3
;
else
if
(
strcasecmp
(
lev
,
"debug4"
)
==
0
)
server_min_messages
=
DEBUG4
;
server_min_messages
=
DEBUG5
;
else
if
(
strcasecmp
(
lev
,
"debug5"
)
==
0
)
server_min_messages
=
DEBUG5
;
else
if
(
strcasecmp
(
lev
,
"log"
)
==
0
)
server_min_messages
=
LOG
;
else
if
(
strcasecmp
(
lev
,
"debug4"
)
==
0
)
server_min_messages
=
DEBUG4
;
else
if
(
strcasecmp
(
lev
,
"debug3"
)
==
0
)
server_min_messages
=
DEBUG3
;
else
if
(
strcasecmp
(
lev
,
"debug2"
)
==
0
)
server_min_messages
=
DEBUG2
;
else
if
(
strcasecmp
(
lev
,
"debug1"
)
==
0
)
server_min_messages
=
DEBUG1
;
else
if
(
strcasecmp
(
lev
,
"info"
)
==
0
)
server_min_messages
=
INFO
;
else
if
(
strcasecmp
(
lev
,
"notice"
)
==
0
)
...
...
@@ -886,6 +884,8 @@ assign_server_min_messages(const char *lev)
server_min_messages
=
WARNING
;
else
if
(
strcasecmp
(
lev
,
"error"
)
==
0
)
server_min_messages
=
ERROR
;
else
if
(
strcasecmp
(
lev
,
"log"
)
==
0
)
server_min_messages
=
LOG
;
else
if
(
strcasecmp
(
lev
,
"fatal"
)
==
0
)
server_min_messages
=
FATAL
;
else
if
(
strcasecmp
(
lev
,
"panic"
)
==
0
)
...
...
@@ -899,12 +899,13 @@ bool
check_client_min_messages
(
const
char
*
lev
)
{
if
(
strcasecmp
(
lev
,
"debug"
)
==
0
||
strcasecmp
(
lev
,
"debug1"
)
==
0
||
strcasecmp
(
lev
,
"debug2"
)
==
0
||
strcasecmp
(
lev
,
"debug3"
)
==
0
||
strcasecmp
(
lev
,
"debug4"
)
==
0
||
strcasecmp
(
lev
,
"debug5"
)
==
0
||
strcasecmp
(
lev
,
"debug4"
)
==
0
||
strcasecmp
(
lev
,
"debug3"
)
==
0
||
strcasecmp
(
lev
,
"debug2"
)
==
0
||
strcasecmp
(
lev
,
"debug1"
)
==
0
||
strcasecmp
(
lev
,
"log"
)
==
0
||
strcasecmp
(
lev
,
"info"
)
==
0
||
strcasecmp
(
lev
,
"notice"
)
==
0
||
strcasecmp
(
lev
,
"warning"
)
==
0
||
strcasecmp
(
lev
,
"error"
)
==
0
)
...
...
@@ -916,19 +917,21 @@ void
assign_client_min_messages
(
const
char
*
lev
)
{
if
(
strcasecmp
(
lev
,
"debug"
)
==
0
)
client_min_messages
=
DEBUG1
;
else
if
(
strcasecmp
(
lev
,
"debug1"
)
==
0
)
client_min_messages
=
DEBUG1
;
else
if
(
strcasecmp
(
lev
,
"debug2"
)
==
0
)
client_min_messages
=
DEBUG2
;
else
if
(
strcasecmp
(
lev
,
"debug3"
)
==
0
)
client_min_messages
=
DEBUG3
;
else
if
(
strcasecmp
(
lev
,
"debug4"
)
==
0
)
client_min_messages
=
DEBUG4
;
client_min_messages
=
DEBUG5
;
else
if
(
strcasecmp
(
lev
,
"debug5"
)
==
0
)
client_min_messages
=
DEBUG5
;
else
if
(
strcasecmp
(
lev
,
"debug4"
)
==
0
)
client_min_messages
=
DEBUG4
;
else
if
(
strcasecmp
(
lev
,
"debug3"
)
==
0
)
client_min_messages
=
DEBUG3
;
else
if
(
strcasecmp
(
lev
,
"debug2"
)
==
0
)
client_min_messages
=
DEBUG2
;
else
if
(
strcasecmp
(
lev
,
"debug1"
)
==
0
)
client_min_messages
=
DEBUG1
;
else
if
(
strcasecmp
(
lev
,
"log"
)
==
0
)
client_min_messages
=
LOG
;
else
if
(
strcasecmp
(
lev
,
"info"
)
==
0
)
client_min_messages
=
INFO
;
else
if
(
strcasecmp
(
lev
,
"notice"
)
==
0
)
client_min_messages
=
NOTICE
;
else
if
(
strcasecmp
(
lev
,
"warning"
)
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment