File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ func (a *Acceptor) handleConnection(netConn net.Conn) {
298
298
// We have a session ID and a network connection. This seems to be a good place for any custom authentication logic.
299
299
if a .connectionValidator != nil {
300
300
if err := a .connectionValidator .Validate (netConn , sessID ); err != nil {
301
- a .globalLog .OnEventf ("Unable to validate a connection %v" , err .Error ())
301
+ a .globalLog .OnEventf ("Unable to validate a connection for session %v: %v" , sessID , err .Error ())
302
302
return
303
303
}
304
304
}
@@ -328,7 +328,7 @@ func (a *Acceptor) handleConnection(netConn net.Conn) {
328
328
msgOut := make (chan []byte )
329
329
330
330
if err := session .connect (msgIn , msgOut ); err != nil {
331
- a .globalLog .OnEventf ("Unable to accept %v" , err .Error ())
331
+ a .globalLog .OnEventf ("Unable to accept session %v connection: %v" , sessID , err .Error ())
332
332
return
333
333
}
334
334
You can’t perform that action at this time.
0 commit comments