Skip to content
Browse files

disabled unused status features

git-svn-id: http://evserver.googlecode.com/svn/trunk@86 e9bb6d7e-af12-11dd-bad7-87afd3b02348
  • Loading branch information...
1 parent 57b7214 commit f9fc3ee4cf0b9a74f460905e6b34dfc96915e50e majek04 committed Feb 9, 2009
Showing with 5 additions and 6 deletions.
  1. +5 −6 evserver/status.py
View
11 evserver/status.py
@@ -4,16 +4,14 @@
import os
import resource
import meminfo
-import other.objgraph as objgraph
-import random
def wsgi_application(environ, start_response):
- if 'memleaks' in environ.get('PATH_INFO', ''):
- return memleaks(environ, start_response)
- else:
- return status_page(environ, start_response)
+ return status_page(environ, start_response)
+'''
+import other.objgraph as objgraph
import inspect
+import random
def memleaks(environ, start_response):
start_response("200 OK", [('Content-Type', 'text/plain')])
@@ -37,6 +35,7 @@ def memleaks(environ, start_response):
# ch = map(str, ch)
#else:
return ['\n'.join(map(str,b))] #[ '\n\n'.join(['\n'.join(map(str,b)), '\n'.join(map(str, ob)), '\n'.join(ch)] ) ]
+'''
def status_page(environ, start_response):
start_response("200 OK", [('Content-Type', 'text/plain'), ('Refresh', '3')])

0 comments on commit f9fc3ee

Please sign in to comment.
Something went wrong with that request. Please try again.