Commit 68146ba 1 parent e45ecd4 commit 68146ba Copy full SHA for 68146ba
File tree 1 file changed +6
-4
lines changed
gsrs-spring-legacy-indexer/src/main/java/ix/core/search
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
package ix .core .search ;
2
2
3
3
4
+ import lombok .extern .slf4j .Slf4j ;
5
+
4
6
import java .util .*;
5
7
import java .util .concurrent .Callable ;
6
8
19
21
* @param <N> The type of the name to be used
20
22
* @param <T> The type of the object returned (the things "stored" in the list)
21
23
*/
24
+ @ Slf4j
22
25
public class LazyList <N ,T > implements List <T >{
23
26
private ObjectNamer <T ,N > objectNamer ;
24
27
@@ -154,12 +157,11 @@ public T get(int index) {
154
157
try {
155
158
return nc .call ();
156
159
} catch (Exception e ) {
157
- System . err . println ("Named callable with name:" + nc .getName ().toString () + " could not be fetched" );
158
- e . printStackTrace ();
160
+ log . error ("Named callable with name:" + nc .getName ().toString () + " could not be fetched" , e );
161
+
159
162
}
160
163
}catch (Exception e ){
161
- e .printStackTrace ();
162
- System .err .println ("Couldn't fetch Named Callable from list" );
164
+ log .error ("Couldn't fetch Named Callable from list" , e );
163
165
}
164
166
return null ;
165
167
}
You can’t perform that action at this time.
0 commit comments