diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-02-22 15:09:59 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-02-22 15:09:59 +0300 |
commit | 029942f4eb7196c2cff0d0e26bc6ff274138f7d8 (patch) | |
tree | f4686c4d7b9cd574fe94c6f4918479a580fecf75 /src/nxt_solaris_sendfilev.c | |
parent | 059a8642898a6bd4b47d13a1c1d599cd44af7e1c (diff) | |
download | unit-029942f4eb7196c2cff0d0e26bc6ff274138f7d8.tar.gz unit-029942f4eb7196c2cff0d0e26bc6ff274138f7d8.tar.bz2 |
I/O operations refactoring.
Diffstat (limited to 'src/nxt_solaris_sendfilev.c')
-rw-r--r-- | src/nxt_solaris_sendfilev.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nxt_solaris_sendfilev.c b/src/nxt_solaris_sendfilev.c index fdd803dc..1b46d099 100644 --- a/src/nxt_solaris_sendfilev.c +++ b/src/nxt_solaris_sendfilev.c @@ -42,7 +42,7 @@ nxt_solaris_event_conn_io_sendfilev(nxt_event_conn_t *c, nxt_buf_t *b, size = nxt_solaris_buf_coalesce(b, sfv, &nsfv, &sync, limit); - nxt_log_debug(c->socket.log, "sendfilev(%d, %D)", c->socket.fd, nsfv); + nxt_debug(c->socket.task, "sendfilev(%d, %D)", c->socket.fd, nsfv); if (nsfv == 0 && sync) { return 0; @@ -53,7 +53,7 @@ nxt_solaris_event_conn_io_sendfilev(nxt_event_conn_t *c, nxt_buf_t *b, err = (n == -1) ? nxt_errno : 0; - nxt_log_debug(c->socket.log, "sendfilev(): %d sent:%uz", n, sent); + nxt_debug(c->socket.task, "sendfilev(): %d sent:%uz", n, sent); if (n == -1) { switch (err) { @@ -67,14 +67,13 @@ nxt_solaris_event_conn_io_sendfilev(nxt_event_conn_t *c, nxt_buf_t *b, default: c->socket.error = err; - nxt_log_error(nxt_socket_error_level(err, c->socket.log_error), - c->socket.log, "sendfilev(%d, %D) failed %E", - c->socket.fd, nsfv, err); + nxt_log(c->socket.task, nxt_socket_error_level(err), + "sendfilev(%d, %D) failed %E", c->socket.fd, nsfv, err); return NXT_ERROR; } - nxt_log_debug(c->socket.log, "sendfilev() %E", err); + nxt_debug(c->socket.task, "sendfilev() %E", err); return sent; } |