mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
补充出错信息
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@448 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -25,8 +25,12 @@ import javax.swing.table.DefaultTableColumnModel;
|
||||
import javax.swing.table.TableColumn;
|
||||
import javax.swing.table.TableRowSorter;
|
||||
|
||||
public class SQLPanel extends JPanel {
|
||||
import com.alibaba.druid.logging.Log;
|
||||
import com.alibaba.druid.logging.LogFactory;
|
||||
|
||||
public class SQLPanel extends JPanel {
|
||||
private final static Log LOG = LogFactory.getLog(SQLPanel.class);
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private MBeanServerConnection connection;
|
||||
@@ -108,7 +112,7 @@ public class SQLPanel extends JPanel {
|
||||
this.setLayout(new BorderLayout());
|
||||
this.add(tableScrollPane, BorderLayout.CENTER);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
LOG.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +163,7 @@ public class SQLPanel extends JPanel {
|
||||
tableModel.setRowData(rows);
|
||||
tableModel.fireTableRowsInserted(0, rows.length);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
LOG.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user