mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01: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)
|
||||
{
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue