From 82be9e4eedb7ae8d487af2408ffc08437fbffaeb Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 24 Jan 2026 18:17:52 -0500 Subject: [PATCH] Fix systemd logging. --- scheduler/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/log.c b/scheduler/log.c index 90fd549826..e1107dd00c 100644 --- a/scheduler/log.c +++ b/scheduler/log.c @@ -1243,7 +1243,7 @@ cupsdLogRequest(cupsd_client_t *con, /* I - Request to log */ #ifdef HAVE_SYSTEMD_SD_JOURNAL_H 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) : "-"); + 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_status) : "-", con->response ? ippErrorString(con->response->request.op_status) : "-"); return (1); } -- 2.47.3