@@ -49,9 +49,7 @@ public void fileAdd(String path, String analyzer) {
49
49
if (LOGGER .isLoggable (Level .FINE )) {
50
50
LOGGER .log (Level .FINE , "Add: ''{0}'' ({1})" , new Object []{path , analyzer });
51
51
}
52
- if (LOGGER .isLoggable (Level .FINEST )) {
53
- statMap .put (path , new Statistics ());
54
- }
52
+ statMap .put (path , new Statistics ());
55
53
}
56
54
57
55
@ Override
@@ -61,12 +59,12 @@ public void fileRemove(String path) {
61
59
62
60
@ Override
63
61
public void fileAdded (String path , String analyzer ) {
64
- if ( LOGGER . isLoggable ( Level . FINEST )) {
65
- Statistics stat = statMap . get ( path );
66
- if ( stat != null ) {
67
- stat . report ( LOGGER , Level . FINEST , String . format ( "Added: '%s' (%s)" , path , analyzer ),
68
- "indexer.file.add.latency" );
69
- statMap . remove ( path , stat );
62
+ Statistics stat = statMap . get ( path );
63
+ if ( stat != null ) {
64
+ stat . report ( LOGGER , Level . FINEST , String . format ( "Added: '%s' (%s)" , path , analyzer ),
65
+ "indexer.file.add.latency" );
66
+ statMap . remove ( path , stat );
67
+ if ( LOGGER . isLoggable ( Level . FINEST )) {
70
68
return ;
71
69
}
72
70
}
0 commit comments