From d65c22fd9f1b699aa95f1e061a27356fe92253f1 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 24 Oct 2018 18:17:06 -0700 Subject: [PATCH] ircd: Use resource log facility for HTTP status related; add path to log msg. --- ircd/client.cc | 4 ++-- ircd/resource.cc | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ircd/client.cc b/ircd/client.cc index 0f7383305..dbbcca881 100644 --- a/ircd/client.cc +++ b/ircd/client.cc @@ -737,7 +737,7 @@ try log::debug { - log, "%s HTTP %s `%s' content-length:%zu have:%zu", + resource::log, "%s HTTP %s `%s' content-length:%zu have:%zu", loghead(), head.method, head.path, @@ -816,7 +816,7 @@ catch(const http::error &e) log::derror { - log, "%s HTTP %u %s `%s' :%s", + resource::log, "%s HTTP %u %s `%s' :%s", loghead(), uint(e.code), http::status(e.code), diff --git a/ircd/resource.cc b/ircd/resource.cc index 91018565d..12aceada9 100644 --- a/ircd/resource.cc +++ b/ircd/resource.cc @@ -1072,9 +1072,10 @@ ircd::resource::response::response(client &client, log::logf { log, facility, - "%s HTTP %d %s in %ld$us; %s %s content", + "%s HTTP %d `%s' %s in %ld$us; %s content-length:%s", client.loghead(), uint(code), + client.request.head.path, http::status(code), request_time, content_type,