public void log(Stats stats, String statPrefix, String logPrefix, boolean logDetails) {
    if (logDetails) {
      stats.dataError(statPrefix + "_" + stat());
      StringBuilder log = new StringBuilder(logPrefix + ": " + getMessage());
      for (var details : detailsSuppliers) {
        log.append("\n").append(details.get());
      }
      var str = log.toString();
      LOGGER.warn(str, this.getCause() == null ? this : this.getCause());
      assert nonFatal : log.toString(); // make unit tests fail if fatal
    } else {
      log(stats, statPrefix, logPrefix);
    }
  }
Logs the error but if {@code logDetails} is true, then also prints detailed debugging info.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeometryException.java