From 16f9c8f7ddf1e7280bb28cb60352f566fdd740e2 Mon Sep 17 00:00:00 2001 From: N090536 Date: Mon, 25 Jan 2016 12:50:05 +0100 Subject: [PATCH] Changing to INFO level in order for the following switches to work as expected: -DdebugModels -DdebugOperations -DdebugSupportingFiles --- .../main/java/io/swagger/codegen/DefaultGenerator.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java index 4a47d57772ba..6da8958fe13f 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java @@ -240,7 +240,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator { } } if (System.getProperty("debugModels") != null) { - LOGGER.debug("############ Model info ############"); + LOGGER.info("############ Model info ############"); Json.prettyPrint(allModels); } @@ -340,7 +340,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator { } } if (System.getProperty("debugOperations") != null) { - LOGGER.debug("############ Operation info ############"); + LOGGER.info("############ Operation info ############"); Json.prettyPrint(allOperations); } @@ -379,7 +379,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator { config.postProcessSupportingFileData(bundle); if (System.getProperty("debugSupportingFiles") != null) { - LOGGER.debug("############ Supporting file info ############"); + LOGGER.info("############ Supporting file info ############"); Json.prettyPrint(bundle); } @@ -552,7 +552,8 @@ public class DefaultGenerator extends AbstractGenerator implements Generator { public void processOperation(String resourcePath, String httpMethod, Operation operation, Map> operations, Path path) { if (operation != null) { if (System.getProperty("debugOperations") != null) { - LOGGER.debug("processOperation: resourcePath= " + resourcePath + "\t;" + httpMethod + " " + operation + "\n"); + LOGGER.info("processOperation: resourcePath= " + resourcePath + "\t;" + httpMethod + " " + operation + + "\n"); } List tags = operation.getTags(); if (tags == null) {