]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/client_conn.go
Fix failing tests
[rbdr/mobius] / hotline / client_conn.go
index a8ace87fe42c65cfa04c0e95923b1e5b60cf963e..4e703c2762b53961cecd0db5d8af94c5d9a10954 100644 (file)
@@ -2,6 +2,7 @@ package hotline
 
 import (
        "encoding/binary"
 
 import (
        "encoding/binary"
+       "go.uber.org/zap"
        "golang.org/x/crypto/bcrypt"
        "io"
        "math/big"
        "golang.org/x/crypto/bcrypt"
        "io"
        "math/big"
@@ -65,6 +66,7 @@ type ClientConn struct {
        AutoReply  []byte
        Transfers  map[int][]*FileTransfer
        Agreed     bool
        AutoReply  []byte
        Transfers  map[int][]*FileTransfer
        Agreed     bool
+       logger     *zap.SugaredLogger
 }
 
 func (cc *ClientConn) sendAll(t int, fields ...Field) {
 }
 
 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",
                        "Received Transaction",
-                       "login", cc.Account.Login,
-                       "name", string(cc.UserName),
                        "RequestType", handler.Name,
                )
 
                        "RequestType", handler.Name,
                )