aboutsummaryrefslogtreecommitdiff
path: root/log.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 /log.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 'log.c')
-rw-r--r--log.c3
1 files changed, 0 insertions, 3 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),