diff options
author | James Fargher <jfargher@gitlab.com> | 2023-02-16 04:30:05 +0300 |
---|---|---|
committer | James Fargher <jfargher@gitlab.com> | 2023-02-16 04:30:05 +0300 |
commit | 88b779602f959875a77200b456cadfb7076be833 (patch) | |
tree | b3ea87fbf607be03564609d5df8fd897c22e9f3c /internal | |
parent | 954816989a09915efa2cad385f92e53b25b01675 (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.
Diffstat (limited to 'internal')
-rw-r--r-- | internal/praefect/middleware/methodtype.go | 2 |
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 |