public static void debug(final Throwable throwable){
  final StringWriter errors=new StringWriter();
  throwable.printStackTrace(new PrintWriter(errors));
  debugLogger.accept(errors.toString());
}

public static void debug ( final Throwable throwable ) { final StringWriter errors = new StringWriter ( ) ; throwable . printStackTrace ( new PrintWriter ( errors ) ) ; debugLogger . accept ( errors . toString ( ) ) ; }
logs the stacktrace of the throwable to the debug logger .
