From 1769bc4364353a2890540c38a864943fa8b66343 Mon Sep 17 00:00:00 2001 From: vadimmanaev Date: Mon, 9 Apr 2018 23:22:25 +0300 Subject: [PATCH] Fixed logger to not use object to string as it may collide with different type of logger --- .../java/com/taboola/backstage/internal/FieldsValidator.java | 2 +- .../internal/factories/BackstageEndpointsRetrofitFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/taboola/backstage/internal/FieldsValidator.java b/src/main/java/com/taboola/backstage/internal/FieldsValidator.java index cca1260..4d1d72b 100644 --- a/src/main/java/com/taboola/backstage/internal/FieldsValidator.java +++ b/src/main/java/com/taboola/backstage/internal/FieldsValidator.java @@ -60,7 +60,7 @@ private static void validate(Object obj, Map, BiFunction A createAuthEndpoint(Class clazz) { Objects.requireNonNull(clazz, "clazz"); - logger.debug("creating authentication endpoint using retrofit for class [{}]", clazz); + logger.debug("creating authentication endpoint using retrofit for class [{}]", clazz::toString); return communicationFactory.createRetrofitAuthEndpoint(clazz); } @Override public E createEndpoint(Class clazz) { Objects.requireNonNull(clazz, "clazz"); - logger.debug("creating endpoint using retrofit for class [{}]", clazz); + logger.debug("creating endpoint using retrofit for class [{}]", clazz::toString); return communicationFactory.createRetrofitEndpoint(clazz); } }