Skip to content

Commit fc4fce3

Browse files
committed
write processOperation debug output only if the debugOperations property is set
1 parent 3d89399 commit fc4fce3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,9 @@ public SecuritySchemeDefinition fromSecurity(String name) {
425425

426426
public void processOperation(String resourcePath, String httpMethod, Operation operation, Map<String, List<CodegenOperation>> operations, Path path) {
427427
if (operation != null) {
428-
LOGGER.info("processOperation: resourcePath= " + resourcePath + "\t;" + httpMethod + " " + operation + "\n");
428+
if (System.getProperty("debugOperations") != null) {
429+
LOGGER.debug("processOperation: resourcePath= " + resourcePath + "\t;" + httpMethod + " " + operation + "\n");
430+
}
429431
List<String> tags = operation.getTags();
430432
if (tags == null) {
431433
tags = new ArrayList<String>();

0 commit comments

Comments
 (0)