kore

a fork of the worlds most advanced web framework
Log | Files | Refs | README | LICENSE

commit a868ff2b25cb14d21a5c66efa67e4571f31418f6
parent 9aa0e95643303805113970b6fc75fffda06c96c0
Author: Joris Vink <joris@coders.se>
Date:   Sat, 22 Dec 2018 09:41:55 +0100

wrap accesslog calls in !KORE_NO_HTTP.

Diffstat:
Msrc/kore.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/kore.c b/src/kore.c @@ -656,7 +656,9 @@ kore_server_start(int argc, char *argv[]) worker_max_connections = tmp; kore_timer_init(); +#if !defined(KORE_NO_HTTP) kore_timer_add(kore_accesslog_run, 10, NULL, 0); +#endif while (quit != 1) { if (sig_recv != 0) { @@ -696,7 +698,9 @@ kore_server_start(int argc, char *argv[]) } now = kore_time_ms(); +#if !defined(KORE_NO_HTTP) kore_accesslog_gather(NULL, now, 1); +#endif kore_platform_event_cleanup(); kore_connection_cleanup();