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) {
155155
156156 } catch (Exception e ) {
157157 unscannableFiles .add (filePath );
158- e . printStackTrace ( );
158+ log . error ( "Problem scanning file" , e );
159159 }
160160 });
161161 }
162162
163163 executor .shutdown ();
164164 try {
165- boolean success = executor .awaitTermination (15 , TimeUnit .MINUTES );
165+ boolean success = executor .awaitTermination (5 , TimeUnit .MINUTES );
166166 log .trace ("Success running codemod: {}" , success );
167167 while (!executor .isTerminated ()) {
168+ executor .shutdownNow ();
168169 final Future <String > future = service .poll ();
169170 if (future != null ) {
170171 log .trace ("Finished: {}" , future .get ());
You can’t perform that action at this time.
0 commit comments