# HG changeset patch # User RhodeCode Admin # Date 2023-02-24 08:38:36 # Node ID ad4effdd9db2921508d8dbfa710f29f2f769e183 # Parent 07d248e8dff179a8d521fce4987cf6e9af548ad1 metrics: statsd report vcs methods use even on debug logs disabled diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -330,12 +330,12 @@ class HTTPApplication(object): log.debug('Method requested:`%s` with args:%s kwargs:%s context_uid: %s, repo_state_uid:%s', method, call_args, kwargs, context_uid, repo_state_uid) - statsd = request.registry.statsd - if statsd: - statsd.incr( - 'vcsserver_method_total', tags=[ - "method:{}".format(method), - ]) + statsd = request.registry.statsd + if statsd: + statsd.incr( + 'vcsserver_method_total', tags=[ + "method:{}".format(method), + ]) return payload, remote, method, args, kwargs def vcs_view(self, request):