private static void logStackTrace(Throwable throwable) {
    logger.warn(throwable.getMessage(), throwable);
  }
Logs the stack trace for the given Throwable if logger is initialized else prints the stack
trace using System.out. If logged the logs are logged at WARNING level.

@param throwable Throwable to log stack trace for
geode-core/src/main/java/org/apache/geode/admin/internal/InetAddressUtilsWithLogging.java