public void logNonRetryableExceptions()

in services/library/src/main/java/com/google/cloud/pso/bq_pii_classifier/helpers/LoggingHelper.java [172:188]


    public void logNonRetryableExceptions(String trackingId, Exception ex) {

        Object [] attributes = new Object[]{
                kv("non_retryable_ex_tracking_id", trackingId),
                kv("non_retryable_ex_name", ex.getClass().getName()),
                kv("non_retryable_ex_msg", ex.getMessage()),
        };

        logWithTracker(
                ApplicationLog.NON_RETRYABLE_EXCEPTIONS_LOG,
                trackingId,
                String.format("Caught a Non-Retryable exception while processing tracker `%s`. Exception: %s. Msg: %s", trackingId, ex.getClass().getName(), ex.getMessage()),
                Level.ERROR,
                attributes
        );
        ex.printStackTrace();
    }