< prev index next >

core/org.openjdk.jmc.agent/src/main/java/org/openjdk/jmc/agent/Agent.java

Print this page

        

*** 51,61 **** */ public class Agent { /** * This should be generated as part of the build later. */ ! public final static String VERSION = "0.0.1"; //$NON-NLS-1$ private final static String DEFAULT_CONFIG = "jfrprobes.xml"; //$NON-NLS-1$ @SuppressWarnings("unused") private static Instrumentation instrumentationInstance; --- 51,61 ---- */ public class Agent { /** * This should be generated as part of the build later. */ ! public final static String VERSION = "0.0.2"; //$NON-NLS-1$ private final static String DEFAULT_CONFIG = "jfrprobes.xml"; //$NON-NLS-1$ @SuppressWarnings("unused") private static Instrumentation instrumentationInstance;
*** 133,140 **** getLogger().log(Level.SEVERE, "Failed to read jfr probe definitions from " + file.getPath(), e); //$NON-NLS-1$ } } private static void printVersion() { ! Logger.getLogger(Agent.class.getName()).info(String.format("JMC BCI agent v%s", VERSION)); //$NON-NLS-1$ } } --- 133,140 ---- getLogger().log(Level.SEVERE, "Failed to read jfr probe definitions from " + file.getPath(), e); //$NON-NLS-1$ } } private static void printVersion() { ! getLogger().info(String.format("JMC BCI agent v%s", VERSION)); //$NON-NLS-1$ } }
< prev index next >