mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 22:14:10 -04:00
Improve the backwards compatibility re-exports of synapse.logging.context (#5617)
* Improve the backwards compatibility re-exports of synapse.logging.context. * reexport logformatter too
This commit is contained in:
parent
ee91ac179c
commit
1ee268d33d
4 changed files with 62 additions and 5 deletions
|
@ -21,14 +21,10 @@ import attr
|
|||
|
||||
from twisted.internet import defer, task
|
||||
|
||||
from synapse.logging import context, formatter
|
||||
from synapse.logging import context
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Compatibility alias, for existing logconfigs.
|
||||
logcontext = context
|
||||
logformatter = formatter
|
||||
|
||||
|
||||
def unwrapFirstError(failure):
|
||||
# defer.gatherResults and DeferredLists wrap failures.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue