logging: improve handling tween logging name

This commit is contained in:
RhodeCode Admin 2023-03-08 14:55:23 +01:00
parent 459a222981
commit 9c2ac7ec41

View file

@ -45,13 +45,13 @@ def vcs_detection_tween_factory(handler, registry):
request.environ[VCS_TYPE_KEY] = vcs_handler.SCM
request.vcs_call = vcs_handler.SCM
log.debug('Processing request with `%s` handler', handler)
log.debug('Processing request with `%s` handler', handler.__name__)
return handler(request)
# mark that we didn't detect an VCS, and we can skip detection later on
request.environ[VCS_TYPE_KEY] = VCS_TYPE_SKIP
log.debug('Processing request with `%s` handler', handler)
log.debug('Processing request with `%s` handler', handler.__name__)
return handler(request)
return vcs_detection_tween