0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 23:08:20 +02:00

ircd: Use resource log facility for HTTP status related; add path to log msg.

This commit is contained in:
Jason Volk 2018-10-24 18:17:06 -07:00
parent ddc1849677
commit d65c22fd9f
2 changed files with 4 additions and 3 deletions

View file

@ -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),

View file

@ -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,