summary refs log tree commit diff
path: root/synapse/logging/context.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-19 18:00:37 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-19 18:00:37 +0000
commitfa87b96ad245aa1d7289c1c3b95c9fe6ef9d98bf (patch)
tree09905f96b7da920a940484bb816c607613eab057 /synapse/logging/context.py
parent1.7.0 (diff)
parentMerge pull request #6537 from matrix-org/erikj/bump_mypy_version (diff)
downloadsynapse-fa87b96ad245aa1d7289c1c3b95c9fe6ef9d98bf.tar.xz
Merge pull request #6537 from matrix-org/erikj/bump_mypy_version
* commit '5cadbd9eb':
  More rewording of changelog.
  Reword changelog
  Add deprecation notes
  Newsfile
  Bump version of mypy
Diffstat (limited to 'synapse/logging/context.py')
-rw-r--r--synapse/logging/context.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/logging/context.py b/synapse/logging/context.py

index 6747f29e6a..33b322209d 100644 --- a/synapse/logging/context.py +++ b/synapse/logging/context.py
@@ -405,6 +405,9 @@ class LoggingContext(object): """ current = get_thread_resource_usage() + # Indicate to mypy that we know that self.usage_start is None. + assert self.usage_start is not None + utime_delta = current.ru_utime - self.usage_start.ru_utime stime_delta = current.ru_stime - self.usage_start.ru_stime