From 135fdaae0d0ff62d295a9a3fbe2f89e19890e269 Mon Sep 17 00:00:00 2001 From: "Amber H. Brown" Date: Thu, 31 Oct 2019 21:01:37 +1100 Subject: [PATCH] update linting --- changelog.d/6266.misc | 1 + synapse/benchmarks/__main__.py | 1 - synapse/benchmarks/suites/logging.py | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 changelog.d/6266.misc diff --git a/changelog.d/6266.misc b/changelog.d/6266.misc new file mode 100644 index 0000000000..634e421a79 --- /dev/null +++ b/changelog.d/6266.misc @@ -0,0 +1 @@ +Add benchmarks for structured logging and improve output performance. diff --git a/synapse/benchmarks/__main__.py b/synapse/benchmarks/__main__.py index d67a1cf43a..0d490791fc 100644 --- a/synapse/benchmarks/__main__.py +++ b/synapse/benchmarks/__main__.py @@ -17,7 +17,6 @@ import pyperf from twisted.python import reflect -from synapse.benchmarks import setupdb from synapse.benchmarks.suites import SUITES if __name__ == "__main__": diff --git a/synapse/benchmarks/suites/logging.py b/synapse/benchmarks/suites/logging.py index 37e7229b6c..8756682106 100644 --- a/synapse/benchmarks/suites/logging.py +++ b/synapse/benchmarks/suites/logging.py @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys import warnings from contextlib import redirect_stderr from io import StringIO @@ -29,7 +28,6 @@ from twisted.logger import ( Logger, LogPublisher, globalLogBeginner, - textFileLogObserver, ) from twisted.protocols.basic import LineOnlyReceiver from twisted.python.failure import Failure