]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Respect AccessLog configuration when compiled against journald. 5181/head
authorLutz Heermann <LuHee@gmx.de>
Tue, 28 Nov 2017 20:40:22 +0000 (21:40 +0100)
committerLutz Heermann <LuHee@gmx.de>
Tue, 28 Nov 2017 20:40:22 +0000 (21:40 +0100)
scheduler/log.c

index 7dd53c7f77eed35068f0231eca8f31aa4dd6b89b..18d916f5f1ca7fd1690b768ff221cb632f1347d7 100644 (file)
@@ -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);