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:
Amber Brown 2019-07-05 02:32:02 +10:00 committed by GitHub
parent ee91ac179c
commit 1ee268d33d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 62 additions and 5 deletions

View file

@ -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.