|
@@ -207,7 +207,8 @@ public class ZipExtensionTool {
|
|
|
return false;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ logger.log(Level.SEVERE, "Error when extracting {0}. Is unzip installed? Did the download fail?", extensionName);
|
|
|
+ logger.log(Level.SEVERE, "Exception", e);
|
|
|
NotifyDescriptor.Confirmation msg = new NotifyDescriptor.Confirmation(
|
|
|
"Error extracting " + extensionName,
|
|
|
NotifyDescriptor.DEFAULT_OPTION,
|
|
@@ -219,14 +220,16 @@ public class ZipExtensionTool {
|
|
|
try {
|
|
|
in.close();
|
|
|
} catch (IOException ex) {
|
|
|
- Exceptions.printStackTrace(ex);
|
|
|
+ logger.log(Level.SEVERE, "Exception when trying to close the ZIP Input Stream.");
|
|
|
+ logger.log(Level.SEVERE, "Exception", ex);
|
|
|
}
|
|
|
}
|
|
|
if (out != null) {
|
|
|
try {
|
|
|
out.close();
|
|
|
} catch (IOException ex) {
|
|
|
- Exceptions.printStackTrace(ex);
|
|
|
+ logger.log(Level.SEVERE, "Exception when trying to close the Output Stream.");
|
|
|
+ logger.log(Level.SEVERE, "Exception", ex);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -280,7 +283,8 @@ public class ZipExtensionTool {
|
|
|
NotifyDescriptor.DEFAULT_OPTION,
|
|
|
NotifyDescriptor.ERROR_MESSAGE);
|
|
|
DialogDisplayer.getDefault().notify(msg);
|
|
|
- Exceptions.printStackTrace(ex);
|
|
|
+ logger.log(Level.SEVERE, "Error when extracting {0}. Is unzip installed? Did the download fail?", extensionName);
|
|
|
+ logger.log(Level.SEVERE, "Exception", ex);
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -314,7 +318,8 @@ public class ZipExtensionTool {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- Exceptions.printStackTrace(e);
|
|
|
+ logger.log(Level.SEVERE, "Exception when trying to read from STDOUT/STDERR.");
|
|
|
+ logger.log(Level.SEVERE, "Exception", e);
|
|
|
}
|
|
|
}
|
|
|
}
|