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,