/**
* Start a job in all producers that suports the job type
- *
+ *
* @param infoJob an Information Job
* @return the number of producers that returned OK
*/
/**
* Start all jobs for one producer
- *
+ *
* @param producer
* @param infoJobs
*/
.doOnNext(resp -> logger.debug("Job subscription {} started OK {}", infoJob.getId(), producer.getId())) //
.onErrorResume(throwable -> {
producer.setJobDisabled(infoJob);
- logger.warn("Job subscription failed {}", producer.getId(), throwable.toString());
+ logger.warn("Job subscription failed id: {} url: {}, reason: {}", producer.getId(),
+ producer.getJobCallbackUrl(), throwable.toString());
return Mono.empty();
}) //
.doOnNext(resp -> producer.setJobEnabled(infoJob));