Skip to content

Commit b5f6df3

Browse files
committed
Increase logging level where needed (currently using Logger.throwing)
1 parent ee363c8 commit b5f6df3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

visualvm/heapdump/src/org/graalvm/visualvm/heapdump/impl/HeapDumpView.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ public void run() {
149149
contentsPanel.revalidate();
150150
contentsPanel.repaint();
151151
} });
152-
LOGGER.throwing(HeapDumpView.class.getName(), "loadHeap", ex); // NOI18N
153152
LOGGER.log(Level.INFO, "Failed to load heap dump", ex); // NOI18N
154153
}
155154
}

visualvm/jmx/src/org/graalvm/visualvm/jmx/impl/JmxModelImpl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ public void propertyChange(PropertyChangeEvent evt) {
193193

194194
}
195195
} catch (Exception e) {
196-
LOGGER.throwing(JmxModelImpl.class.getName(), "<init>", e); // NOI18N
196+
// LOGGER.throwing(JmxModelImpl.class.getName(), "<init>", e); // NOI18N
197+
LOGGER.log(Level.INFO, "Failed to create JmxModelImpl", e); // NOI18N
197198
client = null;
198199
}
199200
}
@@ -224,7 +225,8 @@ public void propertyChange(PropertyChangeEvent evt) {
224225
application.addPropertyChangeListener(Stateful.PROPERTY_STATE, availabilityListener);
225226
}
226227
} catch (Exception e) {
227-
LOGGER.throwing(JmxModelImpl.class.getName(), "<init>", e); // NOI18N
228+
// LOGGER.throwing(JmxModelImpl.class.getName(), "<init>", e); // NOI18N
229+
LOGGER.log(Level.INFO, "Failed to create JmxModelImpl", e); // NOI18N
228230
client = null;
229231
}
230232
}

visualvm/threaddump/src/org/graalvm/visualvm/threaddump/impl/ThreadDumpView.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import java.io.FileNotFoundException;
3838
import java.io.IOException;
3939
import java.io.InputStream;
40+
import java.util.logging.Level;
4041
import java.util.logging.Logger;
4142
import javax.swing.BorderFactory;
4243
import javax.swing.JLabel;
@@ -144,7 +145,7 @@ public void run() {
144145
try {
145146
is.read(data);
146147
} catch (IOException ex) {
147-
LOGGER.throwing(ThreadDumpView.class.getName(), "loadThreadDump", ex); // NOI18N
148+
LOGGER.log(Level.INFO, "Failed to read thread dump", ex); // NOI18N
148149
}
149150
try {
150151
HTMLTextArea area = new HTMLTextArea();
@@ -163,7 +164,7 @@ public void run() {
163164
LOGGER.throwing(ThreadDumpView.class.getName(), "loadThreadDump", ex); // NOI18N
164165
}
165166
} catch (FileNotFoundException ex) {
166-
LOGGER.throwing(ThreadDumpView.class.getName(), "loadThreadDump", ex); // NOI18N
167+
LOGGER.log(Level.INFO, "Failed to load thread dump", ex); // NOI18N
167168
} finally {
168169
if (is != null) {
169170
try {

0 commit comments

Comments
 (0)