File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
framework/codemodder-base/src/main/java/io/codemodder Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -155,16 +155,17 @@ public CodeTFResult execute(final List<Path> filePaths) {
155
155
156
156
} catch (Exception e ) {
157
157
unscannableFiles .add (filePath );
158
- e . printStackTrace ( );
158
+ log . error ( "Problem scanning file" , e );
159
159
}
160
160
});
161
161
}
162
162
163
163
executor .shutdown ();
164
164
try {
165
- boolean success = executor .awaitTermination (15 , TimeUnit .MINUTES );
165
+ boolean success = executor .awaitTermination (5 , TimeUnit .MINUTES );
166
166
log .trace ("Success running codemod: {}" , success );
167
167
while (!executor .isTerminated ()) {
168
+ executor .shutdownNow ();
168
169
final Future <String > future = service .poll ();
169
170
if (future != null ) {
170
171
log .trace ("Finished: {}" , future .get ());
You can’t perform that action at this time.
0 commit comments