From 0da28a1fe47ffc60e40aeca9dddd7ab37e52a999 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Thu, 23 Jun 2022 15:35:45 -0700 Subject: Improve logging readability --- hotline/transaction_handlers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'hotline/transaction_handlers.go') diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index 735e155..7f29d73 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -907,6 +907,7 @@ func HandleTranAgreed(cc *ClientConn, t *Transaction) (res []Transaction, err er *cc.Icon = t.GetField(fieldUserIconID).Data cc.logger = cc.logger.With("name", string(cc.UserName)) + cc.logger.Infow("Login successful", "clientVersion", fmt.Sprintf("%x", *cc.Version)) options := t.GetField(fieldOptions).Data optBitmap := big.NewInt(int64(binary.BigEndian.Uint16(options))) -- cgit