aboutsummaryrefslogtreecommitdiff
path: root/hotline/client_conn.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-21 11:53:13 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-21 11:53:13 -0700
commit67db911d966913ff04ad90018af9a5361a4d8349 (patch)
tree49845c94791f1af54c80aa2ccaf15d13950bef61 /hotline/client_conn.go
parent46b48603ea0e69aab8084a3ce32b31995b31b09c (diff)
Cleanup and logging improvements
Diffstat (limited to 'hotline/client_conn.go')
-rw-r--r--hotline/client_conn.go6
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,
)