mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
ircd::client: Allow some DERROR messages to compile in release mode; tweak facilities.
This commit is contained in:
parent
5d1a88f897
commit
275f350649
1 changed files with 8 additions and 5 deletions
|
@ -836,9 +836,10 @@ catch(const std::system_error &e)
|
||||||
}
|
}
|
||||||
catch(const http::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(),
|
loghead(),
|
||||||
uint(e.code),
|
uint(e.code),
|
||||||
http::status(e.code),
|
http::status(e.code),
|
||||||
|
@ -897,10 +898,12 @@ catch(const std::system_error &)
|
||||||
catch(const http::error &e)
|
catch(const http::error &e)
|
||||||
{
|
{
|
||||||
const ctx::exception_handler eh;
|
const ctx::exception_handler eh;
|
||||||
|
|
||||||
if(!empty(e.content))
|
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(),
|
loghead(),
|
||||||
uint(e.code),
|
uint(e.code),
|
||||||
head.uri,
|
head.uri,
|
||||||
|
@ -943,7 +946,7 @@ catch(const std::exception &e)
|
||||||
|
|
||||||
log::error
|
log::error
|
||||||
{
|
{
|
||||||
log, "%s HTTP 500 Internal Error `%s' :%s",
|
resource::log, "%s HTTP 500 Internal Error `%s' :%s",
|
||||||
loghead(),
|
loghead(),
|
||||||
head.uri,
|
head.uri,
|
||||||
e.what()
|
e.what()
|
||||||
|
|
Loading…
Reference in a new issue