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:
authorQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-09-06 12:58:50 +0300
committerQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-09-06 12:58:50 +0300
commitf6193a424bcc235e906bc1ae82737b4ed58ec8fd (patch)
treef45906831d424709dbca7add35de4b24e6ae5397 /NOTICE
parentd73244e677e150b6ec000ebffcea31a246d80d6a (diff)
parentbeb7fb699afbbd56efc6736f63e9c372609e3f83 (diff)
Merge branch 'pks-log-yamux' into 'master'
grpc/backchannel: Simplify logging with yamux See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6330 Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Approved-by: Sami Hiltunen <shiltunen@gitlab.com> Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com> Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
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{} {