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

ircd::client: Allow some DERROR messages to compile in release mode; tweak facilities.

This commit is contained in:
Jason Volk 2020-03-16 17:58:26 -07:00
parent 5d1a88f897
commit 275f350649

View file

@ -836,9 +836,10 @@ catch(const std::system_error &e)
}
catch(const http::error &e)
{
log::derror
log::logf
{
resource::log, "%s HTTP %u %s :%s",
log, log::level::DERROR,
"%s HTTP %u %s :%s",
loghead(),
uint(e.code),
http::status(e.code),
@ -897,10 +898,12 @@ catch(const std::system_error &)
catch(const http::error &e)
{
const ctx::exception_handler eh;
if(!empty(e.content))
log::derror
log::logf
{
log, "%s HTTP %u `%s' %s :%s",
resource::log, log::level::DERROR,
"%s HTTP %u `%s' %s :%s",
loghead(),
uint(e.code),
head.uri,
@ -943,7 +946,7 @@ catch(const std::exception &e)
log::error
{
log, "%s HTTP 500 Internal Error `%s' :%s",
resource::log, "%s HTTP 500 Internal Error `%s' :%s",
loghead(),
head.uri,
e.what()