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
path: root/NOTICE
diff options
context:
space:
mode:
Diffstat (limited to 'NOTICE')
-rw-r--r--NOTICE12
1 files changed, 9 insertions, 3 deletions
diff --git a/NOTICE b/NOTICE
index 7d7a9d1ae..a30395535 100644
--- a/NOTICE
+++ b/NOTICE
@@ -16028,7 +16028,6 @@ package yamux
import (
"fmt"
"io"
- "log"
"os"
"time"
)
@@ -16076,7 +16075,7 @@ type Config struct {
// Logger is used to pass in the logger to be used. Either Logger or
// LogOutput can be set, not both.
- Logger *log.Logger
+ Logger Logger
}
// DefaultConfig is used to return a default configuration
@@ -16176,7 +16175,7 @@ type Session struct {
config *Config
// logger is used for our logs
- logger *log.Logger
+ logger Logger
// conn is the underlying connection
conn io.ReadWriteCloser
@@ -19111,6 +19110,13 @@ import (
"time"
)
+// Logger is a abstract of *log.Logger
+type Logger interface {
+ Print(v ...interface{})
+ Printf(format string, v ...interface{})
+ Println(v ...interface{})
+}
+
var (
timerPool = &sync.Pool{
New: func() interface{} {