mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 19:42:18 -04:00
Move logging utilities out of the side drawer of util/ and into logging/ (#5606)
This commit is contained in:
parent
cb8d568cf9
commit
463b072b12
98 changed files with 249 additions and 233 deletions
|
@ -20,8 +20,7 @@ import shutil
|
|||
from twisted.internet import defer
|
||||
|
||||
from synapse.config._base import Config
|
||||
from synapse.util import logcontext
|
||||
from synapse.util.logcontext import run_in_background
|
||||
from synapse.logging.context import defer_to_thread, run_in_background
|
||||
|
||||
from .media_storage import FileResponder
|
||||
|
||||
|
@ -125,7 +124,7 @@ class FileStorageProviderBackend(StorageProvider):
|
|||
if not os.path.exists(dirname):
|
||||
os.makedirs(dirname)
|
||||
|
||||
return logcontext.defer_to_thread(
|
||||
return defer_to_thread(
|
||||
self.hs.get_reactor(), shutil.copyfile, primary_fname, backup_fname
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue