docs: private void logFailure(String message, Object... args) {
          totalFailures.inc();
  
          long total = totalFailures.get();
  
          // it can happen that 2 threads at the same conclude that the level should be warn because of the
          // non atomic int/get. This is an acceptable trade of since it is unlikely to happen and you only get
          // additional warning under log as a side effect.
          Level level = total % WARNING_LOG_FREQUENCY == 0
                  ? Level.WARNING : Level.FINEST;
  
          if (logger.isLoggable(level)) {
              logger.log(level, String.format(message, args));
          }
      }