Tabnine Logo
InternalLogger.debug
Code IndexAdd Tabnine to your IDE (free)

How to use
debug
method
in
io.netty.util.internal.logging.InternalLogger

Best Java code snippets using io.netty.util.internal.logging.InternalLogger.debug (Showing top 20 results out of 315)

Refine searchRefine arrow

  • InternalLogger.isDebugEnabled
origin: redisson/redisson

@Override
public void checkClientTrusted(X509Certificate[] chain, String s) {
  if (logger.isDebugEnabled()) {
    logger.debug("Accepting a client certificate: " + chain[0].getSubjectDN());
  }
}
origin: redisson/redisson

@Override
public void checkServerTrusted(X509Certificate[] chain, String s) {
  if (logger.isDebugEnabled()) {
    logger.debug("Accepting a server certificate: " + chain[0].getSubjectDN());
  }
}
origin: wildfly/wildfly

@Override
public void checkClientTrusted(X509Certificate[] chain, String s) {
  if (logger.isDebugEnabled()) {
    logger.debug("Accepting a client certificate: " + chain[0].getSubjectDN());
  }
}
origin: wildfly/wildfly

@Override
public void checkServerTrusted(X509Certificate[] chain, String s) {
  if (logger.isDebugEnabled()) {
    logger.debug("Accepting a server certificate: " + chain[0].getSubjectDN());
  }
}
origin: wildfly/wildfly

  private static void logUnknownVersion(ChannelHandlerContext ctx, byte versionVal) {
    if (logger.isDebugEnabled()) {
      logger.debug("{} Unknown protocol version: {}", ctx.channel(), versionVal & 0xFF);
    }
  }
}
origin: netty/netty

private static long newSeed() {
  for (;;) {
    final long current = seedUniquifier.get();
    final long actualCurrent = current != 0? current : getInitialSeedUniquifier();
    // L'Ecuyer, "Tables of Linear Congruential Generators of Different Sizes and Good Lattice Structure", 1999
    final long next = actualCurrent * 181783497276652981L;
    if (seedUniquifier.compareAndSet(current, next)) {
      if (current == 0 && logger.isDebugEnabled()) {
        if (seedGeneratorEndTime != 0) {
          logger.debug(String.format(
              "-Dio.netty.initialSeedUniquifier: 0x%016x (took %d ms)",
              actualCurrent,
              TimeUnit.NANOSECONDS.toMillis(seedGeneratorEndTime - seedGeneratorStartTime)));
        } else {
          logger.debug(String.format("-Dio.netty.initialSeedUniquifier: 0x%016x", actualCurrent));
        }
      }
      return next ^ System.nanoTime();
    }
  }
}
origin: redisson/redisson

private static long newSeed() {
  for (;;) {
    final long current = seedUniquifier.get();
    final long actualCurrent = current != 0? current : getInitialSeedUniquifier();
    // L'Ecuyer, "Tables of Linear Congruential Generators of Different Sizes and Good Lattice Structure", 1999
    final long next = actualCurrent * 181783497276652981L;
    if (seedUniquifier.compareAndSet(current, next)) {
      if (current == 0 && logger.isDebugEnabled()) {
        if (seedGeneratorEndTime != 0) {
          logger.debug(String.format(
              "-Dio.netty.initialSeedUniquifier: 0x%016x (took %d ms)",
              actualCurrent,
              TimeUnit.NANOSECONDS.toMillis(seedGeneratorEndTime - seedGeneratorStartTime)));
        } else {
          logger.debug(String.format("-Dio.netty.initialSeedUniquifier: 0x%016x", actualCurrent));
        }
      }
      return next ^ System.nanoTime();
    }
  }
}
origin: netty/netty

  logger.debug("Was not able to find the ID of the shaded native library {}, can't adjust it.", name);
} else {
  if (logger.isDebugEnabled()) {
    logger.debug(
        "Found the ID of the shaded native library {}. Replacing ID part {} with {}",
        name, originalName, new String(bytes, idIdx, nameBytes.length, CharsetUtil.UTF_8));
origin: lettuce-io/lettuce-core

/**
 * Log an {@link IllegalArgumentException} if the request is null or negative.
 *
 * @param n the failing demand
 *
 * @see Exceptions#nullOrNegativeRequestException(long)
 */
static void reportBadRequest(long n) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("Negative request", Exceptions.nullOrNegativeRequestException(n));
  }
}
origin: lettuce-io/lettuce-core

public void run() {
  if (unique.compareAndSet(false, true)) {
    try {
      doRun();
    } finally {
      unique.set(false);
    }
    return;
  }
  if (logger.isDebugEnabled()) {
    logger.debug("ClusterTopologyRefreshTask already in progress");
  }
}
origin: netty/netty

    in = new BufferedReader(new FileReader(file));
    somaxconn = Integer.parseInt(in.readLine());
    if (logger.isDebugEnabled()) {
      logger.debug("{}: {}", file, somaxconn);
      logger.debug("Failed to get SOMAXCONN from sysctl and file {}. Default: {}", file,
             somaxconn);
  logger.debug("Failed to get SOMAXCONN from sysctl and file {}. Default: {}", file, somaxconn, e);
} finally {
  if (in != null) {
origin: redisson/redisson

@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
  if (ignoreException(cause)) {
    // It is safe to ignore the 'connection reset by peer' or
    // 'broken pipe' error after sending close_notify.
    if (logger.isDebugEnabled()) {
      logger.debug(
          "{} Swallowing a harmless 'connection reset by peer / broken pipe' error that occurred " +
          "while writing close_notify in response to the peer's close_notify", ctx.channel(), cause);
    }
    // Close the connection explicitly just in case the transport
    // did not close the connection automatically.
    if (ctx.channel().isActive()) {
      ctx.close();
    }
  } else {
    ctx.fireExceptionCaught(cause);
  }
}
origin: redisson/redisson

/**
 * Reset the accounting on Read and Write.
 *
 * @param newLastTime the milliseconds unix timestamp that we should be considered up-to-date for.
 */
synchronized void resetAccounting(long newLastTime) {
  long interval = newLastTime - lastTime.getAndSet(newLastTime);
  if (interval == 0) {
    // nothing to do
    return;
  }
  if (logger.isDebugEnabled() && interval > checkInterval() << 1) {
    logger.debug("Acct schedule not ok: " + interval + " > 2*" + checkInterval() + " from " + name);
  }
  lastReadBytes = currentReadBytes.getAndSet(0);
  lastWrittenBytes = currentWrittenBytes.getAndSet(0);
  lastReadThroughput = lastReadBytes * 1000 / interval;
  // nb byte / checkInterval in ms * 1000 (1s)
  lastWriteThroughput = lastWrittenBytes * 1000 / interval;
  // nb byte / checkInterval in ms * 1000 (1s)
  realWriteThroughput = realWrittenBytes.getAndSet(0) * 1000 / interval;
  lastWritingTime = Math.max(lastWritingTime, writingTime);
  lastReadingTime = Math.max(lastReadingTime, readingTime);
}
origin: redisson/redisson

private SSLException shutdownWithError(String operation, int sslError, int error) {
  String errorString = SSL.getErrorString(error);
  if (logger.isDebugEnabled()) {
    logger.debug("{} failed with {}: OpenSSL error: {} {}",
           operation, sslError, error, errorString);
  }
  // There was an internal error -- shutdown
  shutdown();
  if (handshakeState == HandshakeState.FINISHED) {
    return new SSLException(errorString);
  }
  return new SSLHandshakeException(errorString);
}
origin: wildfly/wildfly

private SSLException shutdownWithError(String operation, String err) {
  if (logger.isDebugEnabled()) {
    logger.debug("{} failed: OpenSSL error: {}", operation, err);
  }
  // There was an internal error -- shutdown
  shutdown();
  if (handshakeState == HandshakeState.FINISHED) {
    return new SSLException(err);
  }
  return new SSLHandshakeException(err);
}
origin: redisson/redisson

@Override
protected void doClose() throws Exception {
  try {
    super.doClose();
  } finally {
    DomainSocketAddress local = this.local;
    if (local != null) {
      // Delete the socket file if possible.
      File socketFile = new File(local.path());
      boolean success = socketFile.delete();
      if (!success && logger.isDebugEnabled()) {
        logger.debug("Failed to delete a domain socket file: {}", local.path());
      }
    }
  }
}
origin: redisson/redisson

@Override
protected void doClose() throws Exception {
  try {
    super.doClose();
  } finally {
    DomainSocketAddress local = this.local;
    if (local != null) {
      // Delete the socket file if possible.
      File socketFile = new File(local.path());
      boolean success = socketFile.delete();
      if (!success && logger.isDebugEnabled()) {
        logger.debug("Failed to delete a domain socket file: {}", local.path());
      }
    }
  }
}
origin: redisson/redisson

/**
 * Notify all the handshake futures about the successfully handshake
 */
private void setHandshakeSuccess() {
  handshakePromise.trySuccess(ctx.channel());
  if (logger.isDebugEnabled()) {
    logger.debug("{} HANDSHAKEN: {}", ctx.channel(), engine.getSession().getCipherSuite());
  }
  ctx.fireUserEventTriggered(SslHandshakeCompletionEvent.SUCCESS);
  if (readDuringHandshake && !ctx.channel().config().isAutoRead()) {
    readDuringHandshake = false;
    ctx.read();
  }
}
origin: netty/netty

    if (logger.isDebugEnabled()) {
      logger.debug("Selector.select() returned prematurely because " +
          "Thread.currentThread().interrupt() was called. Use " +
          "NioEventLoop.shutdownGracefully() to shutdown the NioEventLoop.");
  if (logger.isDebugEnabled()) {
    logger.debug("Selector.select() returned prematurely {} times in a row for Selector {}.",
        selectCnt - 1, selector);
if (logger.isDebugEnabled()) {
  logger.debug(CancelledKeyException.class.getSimpleName() + " raised by a Selector {} - JDK bug?",
      selector, e);
origin: wildfly/wildfly

@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
  if (ignoreException(cause)) {
    // It is safe to ignore the 'connection reset by peer' or
    // 'broken pipe' error after sending close_notify.
    if (logger.isDebugEnabled()) {
      logger.debug(
          "{} Swallowing a harmless 'connection reset by peer / broken pipe' error that occurred " +
          "while writing close_notify in response to the peer's close_notify", ctx.channel(), cause);
    }
    // Close the connection explicitly just in case the transport
    // did not close the connection automatically.
    if (ctx.channel().isActive()) {
      ctx.close();
    }
  } else {
    ctx.fireExceptionCaught(cause);
  }
}
io.netty.util.internal.loggingInternalLoggerdebug

Javadoc

Log a message at the DEBUG level.

Popular methods of InternalLogger

  • warn
    Log an exception (throwable) at the WARN level.
  • info
    Log an exception (throwable) at the INFO level.
  • isDebugEnabled
    Is the logger instance enabled for the DEBUG level?
  • error
    Log an exception (throwable) at the ERROR level.
  • log
    Log an exception (throwable) at the specified level.
  • isEnabled
    Is the logger instance enabled for the specified level?
  • isWarnEnabled
    Is the logger instance enabled for the WARN level?
  • trace
    Log an exception (throwable) at the TRACE level.
  • isInfoEnabled
    Is the logger instance enabled for the INFO level?
  • isErrorEnabled
    Is the logger instance enabled for the ERROR level?

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFrame (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now