diff options
| author | blob8108 <blob8108@gmail.com> | 2014-12-18 18:37:27 +0000 |
|---|---|---|
| committer | blob8108 <blob8108@gmail.com> | 2014-12-18 18:37:51 +0000 |
| commit | 37f5d8e57f5ffe7825e9a2f48473fda677b6a13f (patch) | |
| tree | 3817fd6815ae3f5b1d1580275128fa8ac557cb7c | |
| parent | fd96b54ccdf6e6670fc4e2cea31acebf1d2c45d9 (diff) | |
| download | blockext-37f5d8e57f5ffe7825e9a2f48473fda677b6a13f.tar.gz blockext-37f5d8e57f5ffe7825e9a2f48473fda677b6a13f.zip | |
Don't log /poll requests in Python 2
| -rw-r--r-- | blockext/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockext/server.py b/blockext/server.py index 6380a82..26b4538 100644 --- a/blockext/server.py +++ b/blockext/server.py @@ -67,7 +67,7 @@ def GetRequestHandlerFactory(app): class GetRequestHandler(BaseHTTPRequestHandler): def log_message(self, format_, *args): - if isinstance(args[0], str) and args[0].startswith("GET /poll"): + if args[0].startswith(native("GET /poll")): return return BaseHTTPRequestHandler.log_message(self, format_, *args) |
