logging: improve handling tween logging name
This commit is contained in:
parent
459a222981
commit
9c2ac7ec41
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue