Skip to content

Commit 26ea6f3

Browse files
committed
Add a way for knowing the springdoc-openapi made the request or not. Fixes #1163
1 parent 71cf529 commit 26ea6f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,10 @@ protected synchronized OpenAPI getOpenApi() {
301301
LOGGER.info("Init duration for springdoc-openapi is: {} ms",
302302
Duration.between(start, Instant.now()).toMillis());
303303
}
304-
else
304+
else{
305+
LOGGER.debug("Fetching openApi document from cache");
305306
openApi = openAPIService.updateServers(openAPIService.getCachedOpenAPI());
307+
}
306308
return openApi;
307309
}
308310

0 commit comments

Comments
 (0)