summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJosh Blum2013-03-29 23:27:12 -0500
committerJosh Blum2013-03-29 23:27:43 -0500
commit93ae4dae9c6e91ce92046e4905d08bc8d033347f (patch)
tree46abc836b3f37a62d7c8f10e040d1d692a6aafd2 /python
parentf66540d088d46ef4e52367ad083573e557e4cab5 (diff)
downloadsandhi-93ae4dae9c6e91ce92046e4905d08bc8d033347f.tar.gz
sandhi-93ae4dae9c6e91ce92046e4905d08bc8d033347f.tar.bz2
sandhi-93ae4dae9c6e91ce92046e4905d08bc8d033347f.zip
query: hide log messages to stdout by default
Diffstat (limited to 'python')
-rw-r--r--python/gras/query/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/gras/query/__init__.py b/python/gras/query/__init__.py
index b71b7e0..c72222b 100644
--- a/python/gras/query/__init__.py
+++ b/python/gras/query/__init__.py
@@ -10,6 +10,9 @@ server_registry = dict()
class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+ #hide log messages to stdout by default
+ def log_message(self, format, *args): pass
+
def do_HEAD(s):
s.send_response(200)
s.send_header("Content-type", "text/html")