X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/46b48603ea0e69aab8084a3ce32b31995b31b09c..67db911d966913ff04ad90018af9a5361a4d8349:/hotline/client_conn.go diff --git a/hotline/client_conn.go b/hotline/client_conn.go index a8ace87..4e703c2 100644 --- a/hotline/client_conn.go +++ b/hotline/client_conn.go @@ -2,6 +2,7 @@ package hotline import ( "encoding/binary" + "go.uber.org/zap" "golang.org/x/crypto/bcrypt" "io" "math/big" @@ -65,6 +66,7 @@ type ClientConn struct { AutoReply []byte Transfers map[int][]*FileTransfer Agreed bool + logger *zap.SugaredLogger } func (cc *ClientConn) sendAll(t int, fields ...Field) { @@ -97,10 +99,8 @@ func (cc *ClientConn) handleTransaction(transaction *Transaction) error { } } - cc.Server.Logger.Infow( + cc.logger.Infow( "Received Transaction", - "login", cc.Account.Login, - "name", string(cc.UserName), "RequestType", handler.Name, )