Improved a logged warning 41/6341/2
authorPatrikBuhr <patrik.buhr@est.tech>
Thu, 17 Jun 2021 14:21:06 +0000 (16:21 +0200)
committerPatrik Buhr <patrik.buhr@est.tech>
Thu, 17 Jun 2021 15:05:48 +0000 (15:05 +0000)
Change-Id: Iec4739aa7fa48c69f8c6753a95cecab0cabdf7a0
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Issue-ID: NONRTRIC-542

enrichment-coordinator-service/src/main/java/org/oransc/enrichment/controllers/r1producer/ProducerCallbacks.java

index 166c0d5..a97bdf6 100644 (file)
@@ -111,7 +111,8 @@ public class ProducerCallbacks {
             .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));