@@ -110,7 +110,7 @@ public static void close(Context context) {
110
110
try {
111
111
context .close ();
112
112
} catch (NamingException ex ) {
113
- logger .error ("could not close context" , ex );
113
+ logger .warn ("could not close context" , ex );
114
114
}
115
115
}
116
116
}
@@ -125,7 +125,7 @@ public static void close(StartTlsResponse tls) {
125
125
try {
126
126
tls .close ();
127
127
} catch (IOException ex ) {
128
- logger .error ("could not close tls response" , ex );
128
+ logger .warn ("could not close tls response" , ex );
129
129
}
130
130
}
131
131
}
@@ -140,7 +140,7 @@ public static void close(NamingEnumeration<?> enm) {
140
140
try {
141
141
enm .close ();
142
142
} catch (NamingException ex ) {
143
- logger .error ("could not close enumeration" , ex );
143
+ logger .warn ("could not close enumeration" , ex );
144
144
}
145
145
}
146
146
}
@@ -168,7 +168,7 @@ public static String getAttribute(Attributes attributes, String name) {
168
168
}
169
169
}
170
170
} catch (NamingException ex ) {
171
- logger .warn ("could not fetch attribute " . concat ( name ) , ex );
171
+ logger .warn ("could not fetch attribute '{}'" , name , ex );
172
172
}
173
173
174
174
return value ;
@@ -227,10 +227,10 @@ public static int getSearchScope(String scopeString) {
227
227
} else if (SCOPE_OBJECT .equalsIgnoreCase (scopeString )) {
228
228
scope = SearchControls .OBJECT_SCOPE ;
229
229
} else if (logger .isWarnEnabled ()) {
230
- logger .warn ("unknown scope {}, using subtree scope" , scopeString );
230
+ logger .info ("unknown scope {}, using subtree scope" , scopeString );
231
231
}
232
232
} else if (logger .isWarnEnabled ()) {
233
- logger .warn ("no search scope defined, using subtree scope" );
233
+ logger .info ("no search scope defined, using subtree scope" );
234
234
}
235
235
236
236
return scope ;
0 commit comments