Skip to content

Commit 4dbc583

Browse files
author
filinvadim
committed
Improve logs
1 parent 0d249ac commit 4dbc583

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client.go

+3
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ func (s *Client) recognizeAuth(data []byte) (itsAuth bool) {
537537
}
538538

539539
if s.isAuthed {
540+
s.l.Debugln("already authenticated")
540541
return false
541542
}
542543

@@ -550,6 +551,7 @@ func (s *Client) recognizeAuth(data []byte) (itsAuth bool) {
550551
s.authChan <- struct{}{}
551552
return true
552553
}
554+
s.l.Debugln("failed auth via invalid auth json. Response:", string(data))
553555
return
554556
}
555557

@@ -560,6 +562,7 @@ func (s *Client) recognizeAuth(data []byte) (itsAuth bool) {
560562
s.authChan <- struct{}{}
561563
return true
562564
}
565+
s.l.Debugln("failed auth. Diff:", diff.String())
563566
return
564567
}
565568

0 commit comments

Comments
 (0)