Skip to content

Commit

Permalink
Cleanup OpenAPI reader logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Oct 22, 2018
1 parent f7fb682 commit 53e7b7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ else if (rawClass.isAssignableFrom(CompletableFuture.class))

if (futureCls.isAssignableFrom(ServerResponse.class))
{
System.out.println("class is assignable from ServerResponse");
log.debug("class is assignable from ServerResponse");
final JavaType futureType = TypeFactory.defaultInstance().constructType(classType.containedType(0));
resolvedType = futureType.containedType(0);
}
else
{
System.out.println("class is NOT assignable from ServerResponse");
log.debug("class is NOT assignable from ServerResponse");
resolvedType = classType.containedType(0);
}
}
Expand All @@ -105,7 +105,7 @@ else if (rawClass.isAssignableFrom(CompletableFuture.class))

annotatedType.setType(resolvedType);

System.out.println("resolvedType out " + resolvedType);
log.debug("resolvedType out " + resolvedType);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
*/

public class ServerParameterExtension extends AbstractOpenAPIExtension {

private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(ServerParameterExtension.class.getCanonicalName());

private static String QUERY_PARAM = "query";
private static String HEADER_PARAM = "header";
private static String COOKIE_PARAM = "cookie";
Expand Down Expand Up @@ -304,7 +307,7 @@ private boolean handleAdditionalAnnotation(List<Parameter> parameters, Annotatio
jsonViewAnnotation);
if (processedParam != null) {

System.out.println("added new parameters: " + processedParam);
log.debug("added new parameters: " + processedParam);
parameters.add(processedParam);
}
}
Expand Down

0 comments on commit 53e7b7a

Please sign in to comment.