mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 16:01:55 +03:00
Small logger fix
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
||||||
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/9seconds/mtg/conntypes"
|
"github.com/9seconds/mtg/conntypes"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -45,6 +47,10 @@ func (w *wrapperClientIntermediateSecure) Write(packet conntypes.Packet, acks *c
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (w *wrapperClientIntermediateSecure) Logger() *zap.SugaredLogger {
|
||||||
|
return w.parent.Logger().Named("client-intermediate-secure")
|
||||||
|
}
|
||||||
|
|
||||||
func NewClientIntermediateSecure(parent conntypes.StreamReadWriteCloser) conntypes.PacketAckFullReadWriteCloser {
|
func NewClientIntermediateSecure(parent conntypes.StreamReadWriteCloser) conntypes.PacketAckFullReadWriteCloser {
|
||||||
return &wrapperClientIntermediateSecure{
|
return &wrapperClientIntermediateSecure{
|
||||||
wrapperClientIntermediate: wrapperClientIntermediate{
|
wrapperClientIntermediate: wrapperClientIntermediate{
|
||||||
|
|||||||
Reference in New Issue
Block a user