aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-22 09:19:14 +0000
committerOmar Polo <op@omarpolo.com>2021-02-23 13:43:33 +0100
commit4604dc9671fc46832928fb9f6ab83aaee55931d8 (patch)
tree00a8fb5d8880c4b9ed0dec9090c27e938d3ed7f1 /server.c
parent793835cb26c39202133c754fb33f8909ebf8fb92 (diff)
move vhost_should_log call to server.c
log.o is linked to some regress/ stuff. Calling from there a vhost_* function means that we should link the regress/stuff to server.o too (and that would pull in other stuff...). Moving the call is easier, and also probably better.
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 2 insertions, 1 deletions
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);