diff options
Diffstat (limited to 'hotline/client_conn.go')
| -rw-r--r-- | hotline/client_conn.go | 6 |
1 files changed, 3 insertions, 3 deletions
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, ) |