diff options
author | Omar Polo <op@omarpolo.com> | 2021-02-22 08:53:14 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-02-23 13:43:24 +0100 |
commit | 793835cb26c39202133c754fb33f8909ebf8fb92 (patch) | |
tree | 4e9bdaa9a6d1d035e6c3bb004ba504a8271db0fd /log.c | |
parent | fd9a4869253110c96e94b4705d4c3604f4d28ce7 (diff) |
add `log on/off' to enable/disable logs per-location
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -188,6 +188,9 @@ 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), |