Skip to content

Commit 6c06cf7

Browse files
committed
add log when catch a exception
1 parent d3ba1f7 commit 6c06cf7

File tree

1 file changed

+4
-0
lines changed
  • PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.azureexplorer/src/com/microsoft/azuretools/azureexplorer/forms

1 file changed

+4
-0
lines changed

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.azureexplorer/src/com/microsoft/azuretools/azureexplorer/forms/AddNewClusterForm.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import org.eclipse.ui.browser.IWebBrowser;
1616

1717
import java.net.URL;
18+
import java.util.logging.Level;
19+
import java.util.logging.Logger;
1820

1921
import com.microsoft.azure.hdinsight.common.ClusterManagerEx;
2022
import com.microsoft.azure.hdinsight.sdk.cluster.HDInsightAdditionalClusterDetail;
@@ -31,6 +33,7 @@
3133

3234
public class AddNewClusterForm extends AzureTitleAreaDialogWrapper {
3335

36+
private static final Logger log = Logger.getLogger(AddNewClusterForm.class.getName());
3437
private String clusterName;
3538
private String userName;
3639
private String password;
@@ -147,6 +150,7 @@ protected Control createDialogArea(Composite parent) {
147150
if (webBrowser != null)
148151
webBrowser.openURL(new URL("https://go.microsoft.com/fwlink/?linkid=866472"));
149152
} catch (Exception e1) {
153+
log.log(Level.WARNING, e1.getMessage());
150154
}
151155
}
152156
});

0 commit comments

Comments
 (0)