X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=lib%2Fjetty%2Forg%2Feclipse%2Fjetty%2Futil%2Flog%2FLog.java;h=b33b5f2b59010cbae2643d8ec3f8b61c8987945f;hp=91b61f9a64fb5c9bdbfde5394d9096e8b534cc33;hb=ba4f228fa9f72d50991a2218cfd83987ef5d385e;hpb=875b5e9651498a0cd8e0001c0742ba843e47cad0 diff --git a/lib/jetty/org/eclipse/jetty/util/log/Log.java b/lib/jetty/org/eclipse/jetty/util/log/Log.java index 91b61f9a..b33b5f2b 100644 --- a/lib/jetty/org/eclipse/jetty/util/log/Log.java +++ b/lib/jetty/org/eclipse/jetty/util/log/Log.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 @@ -20,7 +20,6 @@ package org.eclipse.jetty.util.log; import java.io.IOException; import java.io.InputStream; -import java.lang.management.ManagementFactory; import java.lang.reflect.Method; import java.net.URL; import java.security.AccessController; @@ -34,6 +33,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import org.eclipse.jetty.util.Loader; +import org.eclipse.jetty.util.Uptime; import org.eclipse.jetty.util.annotation.ManagedAttribute; /** @@ -167,8 +167,6 @@ public class Log return; __initialized = true; - final long uptime=ManagementFactory.getRuntimeMXBean().getUptime(); - try { Class log_class = Loader.loadClass(Log.class, __logClass); @@ -185,7 +183,7 @@ public class Log } if (LOG!=null) - LOG.info(String.format("Logging initialized @%dms",uptime)); + LOG.info(String.format("Logging initialized @%dms",Uptime.getUptime())); } }