From 7118716713de66a5ad7d259928e87077afa34f39 Mon Sep 17 00:00:00 2001 From: Lutz Heermann Date: Tue, 28 Nov 2017 21:40:22 +0100 Subject: [PATCH] Respect AccessLog configuration when compiled against journald. --- scheduler/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/log.c b/scheduler/log.c index 7dd53c7f77..18d916f5f1 100644 --- a/scheduler/log.c +++ b/scheduler/log.c @@ -1153,7 +1153,7 @@ cupsdLogRequest(cupsd_client_t *con, /* I - Request to log */ } #ifdef HAVE_SYSTEMD_SD_JOURNAL_H - if (!strcmp(ErrorLog, "syslog")) + if (!strcmp(AccessLog, "syslog")) { sd_journal_print(LOG_INFO, "REQUEST %s - %s \"%s %s HTTP/%d.%d\" %d " CUPS_LLFMT " %s %s", con->http->hostname, con->username[0] != '\0' ? con->username : "-", states[con->operation], _httpEncodeURI(temp, con->uri, sizeof(temp)), con->http->version / 100, con->http->version % 100, code, CUPS_LLCAST con->bytes, con->request ? ippOpString(con->request->request.op.operation_id) : "-", con->response ? ippErrorString(con->response->request.status.status_code) : "-"); return (1);