diff options
-rw-r--r-- | log.c | 3 | ||||
-rw-r--r-- | server.c | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -188,9 +188,6 @@ log_request(struct client *c, char *meta, size_t l) size_t len; int ec; - if (vhost_disable_log(c->host, c->iri.path)) - return; - len = sizeof(c->addr); ec = getnameinfo((struct sockaddr*)&c->addr, len, hbuf, sizeof(hbuf), @@ -620,7 +620,8 @@ handle_start_reply(int fd, short ev, void *d) return; } - log_request(c, buf, sizeof(buf)); + if (!vhost_disable_log(c->host, c->iri.path)) + log_request(c, buf, sizeof(buf)); if (c->code != SUCCESS) close_conn(fd, ev, c); |