[dpdk-web] [PATCH 2/3] local: silent server output

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Feb 10 11:05:05 CET 2016


The default HTTP handler prints every request on stdout.
This empty log_message will make it quiet.

Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
---
 scripts/serve_local.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/serve_local.py b/scripts/serve_local.py
index 5abd9ad..bf05e86 100644
--- a/scripts/serve_local.py
+++ b/scripts/serve_local.py
@@ -40,6 +40,8 @@ class DPDK_Handler(BaseHTTPServer.BaseHTTPRequestHandler):
             f.close()
         except IOError:
             self.send_error(404, 'File Not Found: %s' % path)
+    def log_message(self, format, *args):
+        return
 
 def run(server_class=BaseHTTPServer.HTTPServer,
         handler_class=BaseHTTPServer.BaseHTTPRequestHandler):
-- 
2.7.0



More information about the web mailing list