@@ -1619,22 +1619,19 @@ class Connection {
16191619
16201620 if ( this . _sasl_data [ 'server-signature' ] ) {
16211621
1622- console . debug ( "sasl success: checking final signature" )
16231622 let success ;
16241623 if ( elem . namespaceURI == NS . SASL2 ) {
16251624 success = elem . querySelector ( 'additional-data' )
16261625 } else if ( elem . namespaceURI == NS . SASL ) {
16271626 success = elem ;
16281627 } else {
1629- console . error ( `Unsupported namespace ${ elem . namespaceURI } , cannot authenticate server.` )
16301628 return this . _sasl_failure_cb ( elem ) ;
16311629 }
16321630
16331631 if ( success ) { // XXX dangerous! this disables signature verification if only the server refuses to send
16341632 // but I've enabled fall-through to multiple SASL methods so I need to revamp when 'server-signature' gets set
16351633
16361634 success = atob ( getText ( success ) )
1637- console . debug ( "sasl success: final signature is" , success )
16381635
16391636 const attribMatch = / ( [ a - z ] + ) = ( [ ^ , ] + ) ( , | $ ) / ;
16401637 const matches = success . match ( attribMatch ) ;
@@ -1650,12 +1647,11 @@ class Connection {
16501647 this . _sasl_challenge_handler = null ;
16511648 }
16521649 this . _sasl_data = { } ;
1653- console . error ( "Final SASL signature check failed" )
16541650 return this . _sasl_failure_cb ( elem ) ;
16551651 }
16561652 }
16571653 }
1658- console . log ( 'SASL authentication succeeded.' ) ;
1654+ log . info ( 'SASL authentication succeeded.' ) ;
16591655
16601656 if ( elem . namespaceURI == NS . SASL2 ) {
16611657 // TODO: do something useful with this?
0 commit comments