From 2ed512ddb5793b5bd6849ec4b7764e30e338407a Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 22 Dec 2022 00:50:56 -0800 Subject: [PATCH] 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 support with the way that Logback implements its own `` support. Closes gh-33618 --- .../boot/logging/logback/SpringProfileModelHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringProfileModelHandler.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringProfileModelHandler.java index 2a1497d9928..e381dab46a5 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringProfileModelHandler.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/SpringProfileModelHandler.java @@ -50,7 +50,7 @@ class SpringProfileModelHandler extends ModelHandlerBase { public void handle(ModelInterpretationContext intercon, Model model) throws ModelHandlerException { SpringProfileModel profileModel = (SpringProfileModel) model; if (!acceptsProfiles(intercon, profileModel)) { - model.markAsSkipped(); + model.deepMarkAsSkipped(); } }