Deleted Added
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_runtime.h>

--- 65 unchanged lines hidden (view full) ---

74 if (p > end - NXT_LINEFEED_SIZE) {
75 p = end - NXT_LINEFEED_SIZE;
76 }
77
78 nxt_linefeed(p);
79
80 (void) nxt_write_console(nxt_stderr, msg, p - msg);
81
82 if (level == NXT_LOG_ALERT) {
83 *(p - NXT_LINEFEED_SIZE) = '\0';
84
85 /*
86 * The syslog LOG_ALERT level is enough, because
87 * LOG_EMERG level broadcasts a message to all users.
88 */
89 nxt_write_syslog(LOG_ALERT, syslogmsg);
90 }

--- 42 unchanged lines hidden ---