private void dumpUrl() { Connector[] connectors = getServer().getConnectors(); for (int i=0;i<connectors.length;i++) { String displayName = getDisplayName(); if (displayName == null) displayName = "WebApp@"+Arrays.hashCode(connectors); LOG.info(displayName + " at http://" + connectors[i].toString() + getContextPath()); } }
LOG.info("NO JSP Support for {}, did not find {}", context.getContextPath(), servlet_class); servlet_class = "org.eclipse.jetty.servlet.NoJspServlet";
private void printInfoOnLeases() { leases.forEach(lease-> LOG.info("{} requires {} threads from {}",lease.leasee,lease.getThreads(),pool)); }
protected void processIncludeCipherSuites(String[] supportedCipherSuites, List<String> selected_ciphers) { for (String cipherSuite : _includeCipherSuites) { Pattern p = Pattern.compile(cipherSuite); boolean added = false; for (String supportedCipherSuite : supportedCipherSuites) { Matcher m = p.matcher(supportedCipherSuite); if (m.matches()) { added = true; selected_ciphers.add(supportedCipherSuite); } } if (!added) LOG.info("No Cipher matching '{}' is supported", cipherSuite); } }
private synchronized void hook() { try { if (!_hooked) Runtime.getRuntime().addShutdownHook(this); _hooked=true; } catch(Exception e) { LOG.ignore(e); LOG.info("shutdown already commenced"); } }
selected_protocols.add(protocol); else LOG.info("Protocol {} not supported in {}", protocol, Arrays.asList(supportedProtocols));
/** * <p>Checks leases against the given number of {@code maxThreads}.</p> * * @param maxThreads A proposed change to the maximum threads to check. * @return true if passes check, false if otherwise (see logs for details) * @throws IllegalStateException if insufficient threads are configured. */ public boolean check(int maxThreads) throws IllegalStateException { int required = leases.stream() .mapToInt(Lease::getThreads) .sum(); int left = maxThreads - required; if (left <= 0) { printInfoOnLeases(); throw new IllegalStateException(String.format("Insufficient configured threads: required=%d < max=%d for %s", required, maxThreads, pool)); } if (left < warnAt) { if (warned.compareAndSet(false,true)) { printInfoOnLeases(); LOG.info("Low configured threads: (max={} - required={})={} < warnAt={} for {}", maxThreads, required, left, warnAt, pool); } return false; } return true; }
LOG.info("Using Non-Native Java {}",pollingWatchServiceClass.getName()); Class<?> c = Class.forName("com.sun.nio.file.SensitivityWatchEventModifier"); Field f = c.getField("HIGH");
LOG.info(String.format("Logging initialized @%dms to %s",Uptime.getUptime(),LOG.getClass().getName()));
@Override public void run() { List<Sweepable> refs = items.get(); if (refs == null) return; for (Sweepable sweepable : refs) { try { if (sweepable.sweep()) { refs.remove(sweepable); if (LOG.isDebugEnabled()) LOG.debug("Resource swept {}", sweepable); } } catch (Throwable x) { LOG.info("Exception while sweeping " + sweepable, x); } } activate(); }
Log.getLogger((String)null).info("Opened "+getDatedFilename());
@Override public void log(String msg) { _logger.info(msg); }
LOG.info("x509={} for {}", x509, this);
private void notifyCommit(Request.CommitListener listener, Request request) { try { listener.onCommit(request); } catch (Throwable x) { LOG.info("Exception while notifying listener " + listener, x); } }
public void bindUserTransaction (WebAppContext context) throws Exception { try { Transaction.bindToENC(); } catch (NameNotFoundException e) { LOG.info("No Transaction manager found - if your webapp requires one, please configure one."); } }
public void processBinding(Node node, App app) throws Exception { LOG.info("processBinding {} {}",node,app.getContextHandler()); } }
@Override public void processBinding(Node node, App app) throws Exception { LOG.info("processBinding {} {}",node,app.getContextHandler()); } }
private void notifyContent(Request.ContentListener listener, Request request, ByteBuffer content) { try { listener.onContent(request, content); } catch (Throwable x) { LOG.info("Exception while notifying listener " + listener, x); } }
private void notifyFailure(Request.FailureListener listener, Request request, Throwable failure) { try { listener.onFailure(request, failure); } catch (Throwable x) { LOG.info("Exception while notifying listener " + listener, x); } } }