Small logger fix

This commit is contained in:
9seconds
2019-10-10 16:11:22 +03:00
parent c62afbdfd8
commit 61450ea3db
@@ -6,6 +6,8 @@ import (
"fmt"
"math/rand"
"go.uber.org/zap"
"github.com/9seconds/mtg/conntypes"
)
@@ -45,6 +47,10 @@ func (w *wrapperClientIntermediateSecure) Write(packet conntypes.Packet, acks *c
return nil
}
func (w *wrapperClientIntermediateSecure) Logger() *zap.SugaredLogger {
return w.parent.Logger().Named("client-intermediate-secure")
}
func NewClientIntermediateSecure(parent conntypes.StreamReadWriteCloser) conntypes.PacketAckFullReadWriteCloser {
return &wrapperClientIntermediateSecure{
wrapperClientIntermediate: wrapperClientIntermediate{