##// END OF EJS Templates
logs: added some added logging for stream hg/git.
marcink -
r247:73f3558e default
parent child Browse files
Show More
@@ -334,6 +334,7 b' class HTTPApplication(object):'
334 else:
334 else:
335 @wsgiapp
335 @wsgiapp
336 def _hg_stream(environ, start_response):
336 def _hg_stream(environ, start_response):
337 log.debug('http-app: handling hg stream')
337 repo_path = environ['HTTP_X_RC_REPO_PATH']
338 repo_path = environ['HTTP_X_RC_REPO_PATH']
338 repo_name = environ['HTTP_X_RC_REPO_NAME']
339 repo_name = environ['HTTP_X_RC_REPO_NAME']
339 packed_config = base64.b64decode(
340 packed_config = base64.b64decode(
@@ -345,6 +346,8 b' class HTTPApplication(object):'
345 # Consitent path information for hgweb
346 # Consitent path information for hgweb
346 environ['PATH_INFO'] = environ['HTTP_X_RC_PATH_INFO']
347 environ['PATH_INFO'] = environ['HTTP_X_RC_PATH_INFO']
347 environ['REPO_NAME'] = repo_name
348 environ['REPO_NAME'] = repo_name
349 log.debug('http-app: starting app handler '
350 'with %s and process request', app)
348 return app(environ, ResponseFilter(start_response))
351 return app(environ, ResponseFilter(start_response))
349 return _hg_stream
352 return _hg_stream
350
353
@@ -358,6 +361,7 b' class HTTPApplication(object):'
358 else:
361 else:
359 @wsgiapp
362 @wsgiapp
360 def _git_stream(environ, start_response):
363 def _git_stream(environ, start_response):
364 log.debug('http-app: handling git stream')
361 repo_path = environ['HTTP_X_RC_REPO_PATH']
365 repo_path = environ['HTTP_X_RC_REPO_PATH']
362 repo_name = environ['HTTP_X_RC_REPO_NAME']
366 repo_name = environ['HTTP_X_RC_REPO_NAME']
363 packed_config = base64.b64decode(
367 packed_config = base64.b64decode(
@@ -388,6 +392,9 b' class HTTPApplication(object):'
388 else:
392 else:
389 app = scm_app.create_git_wsgi_app(
393 app = scm_app.create_git_wsgi_app(
390 repo_path, repo_name, config)
394 repo_path, repo_name, config)
395
396 log.debug('http-app: starting app handler '
397 'with %s and process request', app)
391 return app(environ, start_response)
398 return app(environ, start_response)
392
399
393 return _git_stream
400 return _git_stream
General Comments 0
You need to be logged in to leave comments. Login now