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:
Diffstat (limited to 'vendor/github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus/noop.go')
-rw-r--r--vendor/github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus/noop.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus/noop.go b/vendor/github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus/noop.go
new file mode 100644
index 000000000..f01324cdd
--- /dev/null
+++ b/vendor/github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus/noop.go
@@ -0,0 +1,16 @@
+package grpc_logrus
+
+import (
+ "io/ioutil"
+
+ "github.com/sirupsen/logrus"
+)
+
+var (
+ nullLogger = &logrus.Logger{
+ Out: ioutil.Discard,
+ Formatter: new(logrus.TextFormatter),
+ Hooks: make(logrus.LevelHooks),
+ Level: logrus.PanicLevel,
+ }
+)