aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--log.c3
-rw-r--r--server.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/log.c b/log.c
index b47444b..6bb84f1 100644
--- a/log.c
+++ b/log.c
@@ -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),
diff --git a/server.c b/server.c
index ec0762d..bfb9dce 100644
--- a/server.c
+++ b/server.c
@@ -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);