0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

ircd: In runtime debugmode, log HTTP errors at the error level.

This commit is contained in:
Jason Volk 2018-02-23 21:57:00 -08:00
parent c95edb5d78
commit ff2903900b

View file

@ -681,6 +681,18 @@ try
}
catch(const http::error &e)
{
if(ircd::debugmode) log::error
{
"socket(%p) local[%s] remote[%s] HTTP %d %s `%s' :%s",
sock.get(),
string(local(*this)),
string(remote(*this)),
int(e.code),
http::status(e.code),
head.uri,
e.content
};
resource::response
{
*this, e.content, "text/html; charset=utf8", e.code, e.headers