Skip to content

Commit 2ed512d

Browse files
committed
Use model.deepMarkAsSkipped in SpringProfileModelHandler
Switch `model.markAsSkipped` to `model.deepMarkAsSkipped` in `SpringProfileModelHandler`. Although the current call doesn't appear to be causing issues, it seems best to align our <springProfile> support with the way that Logback implements its own `<if>` support. Closes gh-33618
1 parent 532fed3 commit 2ed512d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringProfileModelHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class SpringProfileModelHandler extends ModelHandlerBase {
5050
public void handle(ModelInterpretationContext intercon, Model model) throws ModelHandlerException {
5151
SpringProfileModel profileModel = (SpringProfileModel) model;
5252
if (!acceptsProfiles(intercon, profileModel)) {
53-
model.markAsSkipped();
53+
model.deepMarkAsSkipped();
5454
}
5555
}
5656

0 commit comments

Comments
 (0)