Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Fargher <jfargher@gitlab.com>2023-02-16 04:30:05 +0300
committerJames Fargher <jfargher@gitlab.com>2023-02-16 04:30:05 +0300
commit88b779602f959875a77200b456cadfb7076be833 (patch)
treeb3ea87fbf607be03564609d5df8fd897c22e9f3c
parent954816989a09915efa2cad385f92e53b25b01675 (diff)
middleware: Change method lookup warning log to debug
This log line is outputted when the given method cannot be found in praefects method registry. This registry has definitions and metadata for every method that praefect proxies for gitaly. This error would only ever be significant to developers that are adding more RPCs to gitaly/praefect. Hence this log should actually be debug output, not warn. This warning only confuses end users who think that something has gone wrong.
-rw-r--r--internal/praefect/middleware/methodtype.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/middleware/methodtype.go b/internal/praefect/middleware/methodtype.go
index bafa03ed9..1355675fc 100644
--- a/internal/praefect/middleware/methodtype.go
+++ b/internal/praefect/middleware/methodtype.go
@@ -38,7 +38,7 @@ func observeMethodType(registry *protoregistry.Registry, fullMethod string) {
mi, err := registry.LookupMethod(fullMethod)
if err != nil {
- logrus.WithField("full_method_name", fullMethod).WithError(err).Warn("error when looking up method info")
+ logrus.WithField("full_method_name", fullMethod).WithError(err).Debug("error when looking up method info")
}
var opType string