Log sample when postWithRetry fails.