X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/7cd900d61edbd6d322db3cecb913adf574389320..02b446d81d53ba3ccd4175917a62563bbda54199:/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, )