This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-dist.git
commit ea87b74e6c629f551632c5365f96e51e990416eb Author: Alex Heneveld <[email protected]> AuthorDate: Fri Sep 10 02:01:16 2021 +0100 exclude chatty logging by felix SCR using our namespace, with setting in scr that should soon allow us to remove the logging.cfg changes here --- .../resources/org.apache.felix.scr.ScrService.cfg | 27 ++++++++++++++++++++++ .../resources/etc/org.ops4j.pax.logging.cfg | 6 +++++ 2 files changed, 33 insertions(+) diff --git a/karaf/config/src/main/resources/org.apache.felix.scr.ScrService.cfg b/karaf/config/src/main/resources/org.apache.felix.scr.ScrService.cfg new file mode 100644 index 0000000..71aafad --- /dev/null +++ b/karaf/config/src/main/resources/org.apache.felix.scr.ScrService.cfg @@ -0,0 +1,27 @@ +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# make SCR components wrapping a call eg UiMetadataConfigListener +# use their own namespace for logging not the namespace of the wrapped class; +# to prevent flooding of the logs with low-level SCR debug for the above class. +# (not working with 2.1.24 but likely soon after as was added around time of release; +# other fields eg ds.loglevel set here are visible in karaf with scr:config) +# see https://github.com/apache/felix-dev/pull/36 +ds.log.extension=true + diff --git a/karaf/features/src/main/resources/resources/etc/org.ops4j.pax.logging.cfg b/karaf/features/src/main/resources/resources/etc/org.ops4j.pax.logging.cfg index 3de253f..b4389e7 100644 --- a/karaf/features/src/main/resources/resources/etc/org.ops4j.pax.logging.cfg +++ b/karaf/features/src/main/resources/resources/etc/org.ops4j.pax.logging.cfg @@ -171,3 +171,9 @@ log4j2.logger.ServletContainerInitializerScanner.level = ERROR log4j2.logger.JettyFactoryImpl.name = org.ops4j.pax.web.service.jetty.internal.JettyFactoryImpl log4j2.logger.JettyFactoryImpl.level = ERROR +# felix scr abuses this category for lots of its debug; might not be needed when new config in org.apache.felix.scr.ScrService.cfg is available +log4j2.logger.UiMetadataConfigListener.name = org.apache.brooklyn.ui.modularity.metadata.registry.impl.UiMetadataConfigListener +log4j2.logger.UiMetadataConfigListener.level = INFO + + +
