diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-09-22 16:42:42 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-09-22 16:42:42 +0300 |
commit | 45c1d41f34031c26344832f92837f08c0dbfba04 (patch) | |
tree | 13dcfc887eb020a59b9d8090bfa70e66858d97ea /src/nxt_app_log.c | |
parent | 6a78aedb7e6eef061bec4fc406fe930154b128fe (diff) | |
download | unit-45c1d41f34031c26344832f92837f08c0dbfba04.tar.gz unit-45c1d41f34031c26344832f92837f08c0dbfba04.tar.bz2 |
Removed fibers from compilation.
It's not used anyway, but breaks building with musl.
This closes issue #5 on GitHub.
Diffstat (limited to 'src/nxt_app_log.c')
-rw-r--r-- | src/nxt_app_log.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/nxt_app_log.c b/src/nxt_app_log.c index 0519c018..013fae46 100644 --- a/src/nxt_app_log.c +++ b/src/nxt_app_log.c @@ -21,9 +21,6 @@ nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) { u_char *p, *syslogmsg, *end; va_list args; - nxt_fid_t fid; - const char *id; - nxt_fiber_t *fib; nxt_thread_t *thr; nxt_time_string_t *time_cache; u_char msg[NXT_MAX_ERROR_STR]; @@ -39,6 +36,11 @@ nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) syslogmsg = p; +#if 0 + nxt_fid_t fid; + const char *id; + nxt_fiber_t *fib; + fib = nxt_fiber_self(thr); if (fib != NULL) { @@ -52,6 +54,10 @@ nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) p = nxt_sprintf(p, end, id, &nxt_log_levels[level], nxt_pid, nxt_thread_tid(thr), fid); +#else + p = nxt_sprintf(p, end, "[%V] %PI#%PT ", &nxt_log_levels[level], nxt_pid, + nxt_thread_tid(thr)); +#endif if (log->ident != 0) { p = nxt_sprintf(p, end, "*%D ", log->ident); |