mirror of
https://github.com/matrix-construct/construct
synced 2025-01-09 14:25:56 +01:00
modules/federation/sender: Downgrade flush error to DERROR on shutdown.
This commit is contained in:
parent
2948bf7cd1
commit
9154233db5
1 changed files with 9 additions and 1 deletions
|
@ -503,8 +503,16 @@ try
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
log::error
|
const auto level
|
||||||
{
|
{
|
||||||
|
run::level == run::level::RUN?
|
||||||
|
log::level::ERROR:
|
||||||
|
log::level::DERROR
|
||||||
|
};
|
||||||
|
|
||||||
|
log::logf
|
||||||
|
{
|
||||||
|
m::log, level,
|
||||||
"flush error to %s :%s",
|
"flush error to %s :%s",
|
||||||
remote,
|
remote,
|
||||||
e.what()
|
e.what()
|
||||||
|
|
Loading…
Reference in a new issue