Use LOG_ERR instead of LOG_EMERG, as LOG_EMERG causes syslogd to tell all
ttys.
This commit is contained in:
parent
e9c87d7728
commit
f8fc4eca22
|
@ -208,7 +208,7 @@ memerror:
|
||||||
* with the message here.
|
* with the message here.
|
||||||
*/
|
*/
|
||||||
#if HAVE_SYSLOG_H
|
#if HAVE_SYSLOG_H
|
||||||
syslog (LOG_DAEMON | LOG_EMERG, "Memory exhausted. Aborting.");
|
syslog (LOG_DAEMON | LOG_ERR, "Memory exhausted. Aborting.");
|
||||||
#endif /* HAVE_SYSLOG_H */
|
#endif /* HAVE_SYSLOG_H */
|
||||||
|
|
||||||
goto sidestep_done;
|
goto sidestep_done;
|
||||||
|
@ -219,18 +219,18 @@ recursion_error:
|
||||||
* error while attempting to send the last error message to the client.
|
* error while attempting to send the last error message to the client.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
syslog (LOG_DAEMON | LOG_EMERG,
|
syslog (LOG_DAEMON | LOG_ERR,
|
||||||
"error (%d, %d) called recursively. Original message was:",
|
"error (%d, %d) called recursively. Original message was:",
|
||||||
last_status, last_errnum);
|
last_status, last_errnum);
|
||||||
syslog (LOG_DAEMON | LOG_EMERG, "%s", last_message);
|
syslog (LOG_DAEMON | LOG_ERR, "%s", last_message);
|
||||||
|
|
||||||
|
|
||||||
syslog (LOG_DAEMON | LOG_EMERG,
|
syslog (LOG_DAEMON | LOG_ERR,
|
||||||
"error (%d, %d) called recursively. Second message was:",
|
"error (%d, %d) called recursively. Second message was:",
|
||||||
status, errnum);
|
status, errnum);
|
||||||
syslog (LOG_DAEMON | LOG_EMERG, "%s", buf2);
|
syslog (LOG_DAEMON | LOG_ERR, "%s", buf2);
|
||||||
|
|
||||||
syslog (LOG_DAEMON | LOG_EMERG, "Aborting.");
|
syslog (LOG_DAEMON | LOG_ERR, "Aborting.");
|
||||||
#endif /* HAVE_SYSLOG_H */
|
#endif /* HAVE_SYSLOG_H */
|
||||||
|
|
||||||
sidestep_done:
|
sidestep_done:
|
||||||
|
|
Loading…
Reference in New Issue