Skip to content

Commit fda9099

Browse files
committed
Use Logger
1 parent 4864892 commit fda9099

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/org/netbeans/modules/php/wordpress/commands/WordPressCli.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import java.util.concurrent.ExecutionException;
5656
import java.util.concurrent.Future;
5757
import java.util.logging.Logger;
58+
import static java.util.logging.Level.WARNING;
5859
import org.netbeans.api.extexecution.ExecutionDescriptor;
5960
import org.netbeans.api.extexecution.base.input.InputProcessor;
6061
import org.netbeans.api.extexecution.base.input.InputProcessors;
@@ -229,7 +230,7 @@ public String getVersion() {
229230
} catch (InterruptedException ex) {
230231
Thread.currentThread().interrupt();
231232
} catch (ExecutionException ex) {
232-
Exceptions.printStackTrace(ex);
233+
LOGGER.log(WARNING, null, ex);
233234
}
234235
return helpLineProcessor.getHelp();
235236
}
@@ -389,9 +390,9 @@ private void getCommands(List<String> subcommands, List<FrameworkCommand> comman
389390
result.get();
390391
}
391392
} catch (InterruptedException ex) {
392-
Exceptions.printStackTrace(ex);
393+
Thread.currentThread().interrupt();
393394
} catch (ExecutionException ex) {
394-
Exceptions.printStackTrace(ex);
395+
LOGGER.log(WARNING, null, ex);
395396
}
396397
List<String> lines = helpLineProcessor.asLines();
397398

0 commit comments

Comments
 (0)