public void logRetryableExceptions()

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


    public void logRetryableExceptions(String trackingId, Exception ex, String reason) {

        Object [] attributes = new Object[]{
                kv("retryable_ex_tracking_id", trackingId),
                kv("retryable_ex_name", ex.getClass().getName()),
                kv("retryable_ex_msg", ex.getMessage()),
                kv("retryable_ex_reason", reason),
        };

        logWithTracker(
                ApplicationLog.RETRYABLE_EXCEPTIONS_LOG,
                trackingId,
                String.format("Caught a Retryable exception while processing tracker `%s`. Exception: %s. Msg: %s. Classification Reason: %s.",
                        trackingId,
                        ex.getClass().getName(),
                        ex.getMessage(),
                        reason
                ),
                Level.WARN,
                attributes
        );
        ex.printStackTrace();
    }