From 9c2ac7ec412f1cf264435e294ca56fa957fd7fe9 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Wed, 8 Mar 2023 14:55:23 +0100 Subject: [PATCH] logging: improve handling tween logging name --- rhodecode/tweens.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rhodecode/tweens.py b/rhodecode/tweens.py index 33ec006f..8a227ae5 100644 --- a/rhodecode/tweens.py +++ b/rhodecode/tweens.py @@ -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