From 184f82ff7cc562eb9d6dfc51c3b48629c2dffe59 Mon Sep 17 00:00:00 2001 From: Chi Wai Chan Date: Thu, 25 Apr 2024 17:11:29 +0800 Subject: [PATCH] Fix typo in classname. --- prometheus_hardware_exporter/exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus_hardware_exporter/exporter.py b/prometheus_hardware_exporter/exporter.py index 12e7180..0be497c 100644 --- a/prometheus_hardware_exporter/exporter.py +++ b/prometheus_hardware_exporter/exporter.py @@ -19,7 +19,7 @@ class ThreadingWSGIServer(ThreadingMixIn, WSGIServer): daemon_threads = True -class SlientRequestHandler(WSGIRequestHandler): +class SilentRequestHandler(WSGIRequestHandler): """A Silent Request handler.""" def log_message(self, format: str, *args: Any) -> None: # pylint: disable=W0622 @@ -51,7 +51,7 @@ def run(self, daemon: bool = False) -> None: self.port, self.app, server_class=ThreadingWSGIServer, - handler_class=SlientRequestHandler, + handler_class=SilentRequestHandler, ) logger.info("Started prometheus hardware exporter at %s:%s.", self.addr, self.port) thread = threading.Thread(target=httpd.serve_forever)