@@ -1582,6 +1582,8 @@ final SQLCollation getDatabaseCollation() {
1582
1582
.getLogger ("com.microsoft.sqlserver.jdbc.Connection" );
1583
1583
static final java .util .logging .Logger loggerResiliency = java .util .logging .Logger
1584
1584
.getLogger ("com.microsoft.sqlserver.jdbc.Resiliency" );
1585
+ static final java .util .logging .Logger loggerRedirection = java .util .logging .Logger
1586
+ .getLogger ("com.microsoft.sqlserver.jdbc.Redirection" );
1585
1587
private static String loggingClassNameBase = "com.microsoft.sqlserver.jdbc.SQLServerConnection" ;
1586
1588
1587
1589
/** Instance-specific loggingClassName to identity the connection in logs */
@@ -3107,8 +3109,8 @@ private void login(String primary, String primaryInstanceName, int primaryPortNu
3107
3109
currentConnectPlaceHolder = currentFOPlaceHolder ;
3108
3110
} else {
3109
3111
if (routingInfo != null ) {
3110
- if (loggerResiliency .isLoggable (Level .FINER )) {
3111
- loggerResiliency .finer (toString () + " Connection open - redirecting to server and instance: " + routingInfo .getFullServerName ());
3112
+ if (loggerRedirection .isLoggable (Level .FINE )) {
3113
+ loggerRedirection .finer (toString () + " Connection open - redirecting to server and instance: " + routingInfo .getFullServerName ());
3112
3114
}
3113
3115
currentPrimaryPlaceHolder = routingInfo ;
3114
3116
routingInfo = null ;
@@ -3152,8 +3154,8 @@ private void login(String primary, String primaryInstanceName, int primaryPortNu
3152
3154
3153
3155
noOfRedirections ++;
3154
3156
3155
- if (loggerResiliency .isLoggable (Level .FINER )) {
3156
- loggerResiliency .finer (toString () + " Connection open - redirection count: " + noOfRedirections );
3157
+ if (loggerRedirection .isLoggable (Level .FINE )) {
3158
+ loggerRedirection .finer (toString () + " Connection open - redirection count: " + noOfRedirections );
3157
3159
}
3158
3160
3159
3161
if (noOfRedirections > 1 ) {
0 commit comments