Deleted
Added
nxt_app_log.c (326:2aad6a5fac13) | nxt_app_log.c (564:762f8c976ead) |
---|---|
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 | 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) { | 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 --- | 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 --- |