@@ -107,12 +107,6 @@ write_elevel(FILE *stream, int elevel)
107107 case ERROR :
108108 fputs ("ERROR: " , stream );
109109 break ;
110- case FATAL :
111- fputs ("FATAL: " , stream );
112- break ;
113- case PANIC :
114- fputs ("PANIC: " , stream );
115- break ;
116110 default :
117111 elog_stderr (ERROR , "invalid logging level: %d" , elevel );
118112 break ;
@@ -151,7 +145,7 @@ exit_if_necessary(int elevel)
151145}
152146
153147/*
154- * Logs to stderr or to log file and exit if ERROR or FATAL .
148+ * Logs to stderr or to log file and exit if ERROR.
155149 *
156150 * Actual implementation for elog() and pg_log().
157151 */
@@ -288,7 +282,7 @@ elog_stderr(int elevel, const char *fmt, ...)
288282}
289283
290284/*
291- * Logs to stderr or to log file and exit if ERROR or FATAL .
285+ * Logs to stderr or to log file and exit if ERROR.
292286 */
293287void
294288elog (int elevel , const char * fmt , ...)
@@ -308,7 +302,7 @@ elog(int elevel, const char *fmt, ...)
308302}
309303
310304/*
311- * Logs only to log file and exit if ERROR or FATAL .
305+ * Logs only to log file and exit if ERROR.
312306 */
313307void
314308elog_file (int elevel , const char * fmt , ...)
@@ -399,10 +393,6 @@ parse_log_level(const char *level)
399393 return WARNING ;
400394 else if (pg_strncasecmp ("error" , v , len ) == 0 )
401395 return ERROR ;
402- else if (pg_strncasecmp ("fatal" , v , len ) == 0 )
403- return FATAL ;
404- else if (pg_strncasecmp ("panic" , v , len ) == 0 )
405- return PANIC ;
406396
407397 /* Log level is invalid */
408398 elog (ERROR , "invalid log-level \"%s\"" , level );
@@ -431,10 +421,6 @@ deparse_log_level(int level)
431421 return "WARNING" ;
432422 case ERROR :
433423 return "ERROR" ;
434- case FATAL :
435- return "FATAL" ;
436- case PANIC :
437- return "PANIC" ;
438424 default :
439425 elog (ERROR , "invalid log-level %d" , level );
440426 }
@@ -491,7 +477,7 @@ logfile_open(const char *filename, const char *mode)
491477 {
492478 int save_errno = errno ;
493479
494- elog_stderr (FATAL , "could not open log file \"%s\": %s" ,
480+ elog_stderr (ERROR , "could not open log file \"%s\": %s" ,
495481 filename , strerror (errno ));
496482 errno = save_errno ;
497483 }
0 commit comments