I have an http.server running inside my code to load a local html, but I don't want the server to log on console every time a request is made.
I looked into this post: How to silent/quiet HTTPServer and BasicHTTPRequestHandler's stderr output?
And tried it out but it returns an error: missing 3 required positional arguments
class main()
    def openHttpServer(self):
        port = 8000
        Handler = http.server.SimpleHTTPRequestHandler
        self.httpd = socketserver.TCPServer(("", port), Handler)
        self.httpd.serve_forever()
I expect it to work the same but without the SimpleHTTPRequestHandler logging in console.
 
    