This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-extensions-slf4j-mdc.git
commit e48b3964fea4d2a08a89f0e6768cfa5dfeef60d9 Author: Chetan Mehrotra <[email protected]> AuthorDate: Thu May 15 06:43:56 2014 +0000 SLING-3048 - Filter to populate SLF4J MDC with request details Filter would only be enabled if explicitly configured git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1594788 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/sling/extensions/mdc/internal/MDCInsertingFilter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/extensions/mdc/internal/MDCInsertingFilter.java b/src/main/java/org/apache/sling/extensions/mdc/internal/MDCInsertingFilter.java index fcb8145..5c8c3a8 100644 --- a/src/main/java/org/apache/sling/extensions/mdc/internal/MDCInsertingFilter.java +++ b/src/main/java/org/apache/sling/extensions/mdc/internal/MDCInsertingFilter.java @@ -20,6 +20,7 @@ package org.apache.sling.extensions.mdc.internal; import org.apache.felix.scr.annotations.Activate; import org.apache.felix.scr.annotations.Component; +import org.apache.felix.scr.annotations.ConfigurationPolicy; import org.apache.felix.scr.annotations.Deactivate; import org.apache.felix.scr.annotations.Modified; import org.apache.felix.scr.annotations.Property; @@ -52,7 +53,9 @@ import java.util.concurrent.CopyOnWriteArraySet; @Service @Component(metatype = true, label="%mdc.label", - description = "%mdc.description") + description = "%mdc.description", + policy = ConfigurationPolicy.REQUIRE +) @Property(name = "pattern",value = "/.*", propertyPrivate = true) /** * Filter is based on ch.qos.logback.classic.helpers.MDCInsertingServletFilter -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
