mirror of
https://github.com/matrix-construct/construct
synced 2025-01-08 05:44:21 +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)
|
||||
{
|
||||
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",
|
||||
remote,
|
||||
e.what()
|
||||
|
|
Loading…
Reference in a new issue