mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:24:01 +03:00
Small logger fix
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user