Skip to content

Commit c7fb504

Browse files
committed
log output fixed
1 parent 04db17c commit c7fb504

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

visualvm/attach/src/org/graalvm/visualvm/attach/AttachModelImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public synchronized boolean takeHeapDump(String fileName) {
104104
InputStream in = getVirtualMachine().dumpHeap(fileName,LIVE_OBJECTS_OPTION);
105105
String out = readToEOF(in);
106106
if (!out.isEmpty()) {
107-
LOGGER.log(Level.INFO,"takeHeapDump",out); // NOI18N
107+
LOGGER.log(Level.INFO,"takeHeapDump: {0}", out); // NOI18N
108108
}
109109
Path f = Paths.get(fileName);
110110
if (out.contains(HEAP_DUMP_NO_SPACE_ID)) {
@@ -143,7 +143,7 @@ public synchronized void setFlag(String name, String value) {
143143
InputStream in = getVirtualMachine().setFlag(name,value);
144144
String out = readToEOF(in);
145145
if (!out.isEmpty()) {
146-
LOGGER.log(Level.INFO,"setFlag",out); // NOI18N
146+
LOGGER.log(Level.INFO,"setFlag: {0}",out); // NOI18N
147147
}
148148
} catch (IOException ex) {
149149
LOGGER.log(Level.INFO,"setFlag",ex); // NOI18N

visualvm/libs.profiler/profiler.snaptracer/src/org/graalvm/visualvm/lib/profiler/snaptracer/logs/LogRecords.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public void endElement(String uri, String localName, String qName) throws SAXExc
284284
r.setResourceBundle(new FakeBundle(key, msg));
285285
}
286286
} else {
287-
LOG.log(Level.CONFIG, "Cannot find resource bundle <null> for key {1}", key);
287+
LOG.log(Level.CONFIG, "Cannot find resource bundle <null> for key {0}", key);
288288
}
289289
}
290290
if (params != null) {

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/NetBeansProfiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public boolean confirmWaitForConnectionReply() {
272272
// The following methods should display messages asynchronously, i.e. they shouldn't block the current
273273
// thread waiting for the user pressing OK.
274274
public void displayError(final String msg) {
275-
LOGGER.log(Level.WARNING, "IDEAppStatusHandler - error: {)}", msg); //NOI18N
275+
LOGGER.log(Level.WARNING, "IDEAppStatusHandler - error: {0}", msg); //NOI18N
276276
ProfilerDialogs.displayError(msg);
277277
}
278278

0 commit comments

Comments
 (0)