瀏覽代碼

Small logger fix

tags/1.0^2
9seconds 6 年之前
父節點
當前提交
61450ea3db
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      wrappers/packetack/client_intermediate_secure.go

+ 6
- 0
wrappers/packetack/client_intermediate_secure.go 查看文件

6
 	"fmt"
6
 	"fmt"
7
 	"math/rand"
7
 	"math/rand"
8
 
8
 
9
+	"go.uber.org/zap"
10
+
9
 	"github.com/9seconds/mtg/conntypes"
11
 	"github.com/9seconds/mtg/conntypes"
10
 )
12
 )
11
 
13
 
45
 	return nil
47
 	return nil
46
 }
48
 }
47
 
49
 
50
+func (w *wrapperClientIntermediateSecure) Logger() *zap.SugaredLogger {
51
+	return w.parent.Logger().Named("client-intermediate-secure")
52
+}
53
+
48
 func NewClientIntermediateSecure(parent conntypes.StreamReadWriteCloser) conntypes.PacketAckFullReadWriteCloser {
54
 func NewClientIntermediateSecure(parent conntypes.StreamReadWriteCloser) conntypes.PacketAckFullReadWriteCloser {
49
 	return &wrapperClientIntermediateSecure{
55
 	return &wrapperClientIntermediateSecure{
50
 		wrapperClientIntermediate: wrapperClientIntermediate{
56
 		wrapperClientIntermediate: wrapperClientIntermediate{

Loading…
取消
儲存