Skip to content

Commit

Permalink
Merge pull request #5181 from LuHee/master
Browse files Browse the repository at this point in the history
Respect AccessLog configuration when compiled against journald.
  • Loading branch information
Michael R Sweet authored Nov 28, 2017
2 parents 4f63d6c + 7118716 commit 704499d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 704499d

Please sign in to comment.