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):