0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01: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::debug
{ {
log, "%s HTTP %s `%s' content-length:%zu have:%zu", resource::log, "%s HTTP %s `%s' content-length:%zu have:%zu",
loghead(), loghead(),
head.method, head.method,
head.path, head.path,
@ -816,7 +816,7 @@ catch(const http::error &e)
log::derror log::derror
{ {
log, "%s HTTP %u %s `%s' :%s", resource::log, "%s HTTP %u %s `%s' :%s",
loghead(), loghead(),
uint(e.code), uint(e.code),
http::status(e.code), http::status(e.code),

View file

@ -1072,9 +1072,10 @@ ircd::resource::response::response(client &client,
log::logf log::logf
{ {
log, facility, 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(), client.loghead(),
uint(code), uint(code),
client.request.head.path,
http::status(code), http::status(code),
request_time, request_time,
content_type, content_type,