mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd:Ⓜ️:fetch: Reduce error log level/verbosity for fetch start failures.
This commit is contained in:
parent
0958bdf286
commit
08d9c95401
1 changed files with 18 additions and 6 deletions
|
@ -524,10 +524,9 @@ catch(const m::UNAVAILABLE &e)
|
|||
}
|
||||
catch(const http::error &e)
|
||||
{
|
||||
log::logf
|
||||
log::derror
|
||||
{
|
||||
log, run::level == run::level::QUIT? log::DERROR: log::ERROR,
|
||||
"Starting %s request for %s in %s to '%s' :%s %s",
|
||||
log, "Starting %s request for %s in %s to '%s' :%s %s",
|
||||
reflect(request.opts.op),
|
||||
string_view{request.opts.event_id},
|
||||
string_view{request.opts.room_id},
|
||||
|
@ -538,12 +537,25 @@ catch(const http::error &e)
|
|||
|
||||
return false;
|
||||
}
|
||||
catch(const server::error &e)
|
||||
{
|
||||
log::derror
|
||||
{
|
||||
log, "Starting %s request for %s in %s to '%s' :%s",
|
||||
reflect(request.opts.op),
|
||||
string_view{request.opts.event_id},
|
||||
string_view{request.opts.room_id},
|
||||
string_view{request.origin},
|
||||
e.what(),
|
||||
};
|
||||
|
||||
return false;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::logf
|
||||
log::error
|
||||
{
|
||||
log, run::level == run::level::QUIT? log::DERROR: log::ERROR,
|
||||
"Starting %s request for %s in %s to '%s' :%s",
|
||||
log, "Starting %s request for %s in %s to '%s' :%s",
|
||||
reflect(request.opts.op),
|
||||
string_view{request.opts.event_id},
|
||||
string_view{request.opts.room_id},
|
||||
|
|
Loading…
Reference in a new issue