Skip to content

Commit

Permalink
Fixed logger to not use object to string as it may collide with diffe…
Browse files Browse the repository at this point in the history
…rent type of logger
  • Loading branch information
vladimanaev committed Apr 9, 2018
1 parent 999c290 commit 1769bc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static void validate(Object obj, Map<Class<?>, BiFunction<Object, Field,
}

} catch (IllegalAccessException e) {
logger.error("Failed to pull field data from field [{}] for annotation [{}]", field.getName(), annotation);
logger.error("Failed to pull field data from field [{}] for annotation [{}]", field.getName(), annotation.toString());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public BackstageEndpointsRetrofitFactory(CommunicationFactory communicationFacto
@Override
public <A> A createAuthEndpoint(Class<A> 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> E createEndpoint(Class<E> 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);
}
}

0 comments on commit 1769bc4

Please sign in to comment.