File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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) {
298298 // We have a session ID and a network connection. This seems to be a good place for any custom authentication logic.
299299 if a .connectionValidator != nil {
300300 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 ())
302302 return
303303 }
304304 }
@@ -328,7 +328,7 @@ func (a *Acceptor) handleConnection(netConn net.Conn) {
328328 msgOut := make (chan []byte )
329329
330330 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 ())
332332 return
333333 }
334334
You can’t perform that action at this time.
0 commit comments