mirror of https://github.com/omar-polo/gmid.git
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.
This commit is contained in:
parent
793835cb26
commit
4604dc9671
3
log.c
3
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),
|
||||
|
|
Loading…
Reference in New Issue