# HG changeset patch # User RhodeCode Admin # Date 2023-03-08 13:55:23 # Node ID 35dc5e2c15e823fb283a832f3e83ac37d8cd92bc # Parent 873cb4542efa4adec602a3a9438d9d770048db7a logging: improve handling tween logging name diff --git a/rhodecode/tweens.py b/rhodecode/tweens.py --- a/rhodecode/tweens.py +++ b/rhodecode/tweens.py @@ -45,13 +45,13 @@ def vcs_detection_tween_factory(handler, 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