[java-metadata-aggregator] branch main updated: MDA-260 - Normal logging level should include INFO

Ian Young ian at iay.org.uk
Thu Apr 20 13:50:11 UTC 2023


This is an automated email from the git hooks/post-receive script.

iay pushed a commit to branch main
in repository java-metadata-aggregator.

View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=ae68c64a30941e416cbd958f77a8126e6959e39e

The following commit(s) were added to refs/heads/main by this push:
     new ae68c64  MDA-260 - Normal logging level should include INFO
ae68c64 is described below

commit ae68c64a30941e416cbd958f77a8126e6959e39e
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Apr 20 14:50:01 2023 +0100

    MDA-260 - Normal logging level should include INFO
    
    https://shibboleth.atlassian.net/browse/MDA-260
---
 .../net/shibboleth/metadata/cli/logger-normal.xml  |  2 +-
 mda-cli/src/test/manual/MDA-260/README.md          | 23 ++++++++++++++++
 mda-cli/src/test/manual/MDA-260/config.xml         | 31 ++++++++++++++++++++++
 3 files changed, 55 insertions(+), 1 deletion(-)

diff --git a/mda-cli/src/main/resources/net/shibboleth/metadata/cli/logger-normal.xml b/mda-cli/src/main/resources/net/shibboleth/metadata/cli/logger-normal.xml
index e5d3038..1bed3df 100644
--- a/mda-cli/src/main/resources/net/shibboleth/metadata/cli/logger-normal.xml
+++ b/mda-cli/src/main/resources/net/shibboleth/metadata/cli/logger-normal.xml
@@ -8,7 +8,7 @@
         </encoder>
     </appender>
 
-    <logger name="net.shibboleth.metadata.cli.SimpleCommandLine" level="INFO"/>
+    <logger name="net.shibboleth.metadata" level="INFO"/>
     
     <root level="WARN">
         <appender-ref ref="CONSOLE"/>
diff --git a/mda-cli/src/test/manual/MDA-260/README.md b/mda-cli/src/test/manual/MDA-260/README.md
new file mode 100644
index 0000000..86f04a3
--- /dev/null
+++ b/mda-cli/src/test/manual/MDA-260/README.md
@@ -0,0 +1,23 @@
+# MDA-260
+
+See <https://shibboleth.atlassian.net/browse/MDA-260>
+
+Test as follows:
+
+```bash
+.../mda.sh config.xml test
+```
+
+Result should be something like this:
+
+```
+INFO  - Pipeline 'test' execution starting at Thu Apr 20 14:47:34 BST 2023
+INFO  - stage1 >>> stage1a, count=0
+INFO  - stage1a completed, duration=PT0.000005S
+INFO  - stage1 <<< stage1a, count=0, duration=PT0.000184S
+INFO  - stage1 >>> stage1b, count=0
+INFO  - stage1 <<< stage1b, count=0, duration=PT0.000026S
+INFO  - stage1 completed, duration=PT0.000295S
+INFO  - stage2 completed, duration=PT0.000002S
+INFO  - Pipeline 'test' execution completed at Thu Apr 20 14:47:34 BST 2023; run time 0.009 seconds
+```
diff --git a/mda-cli/src/test/manual/MDA-260/config.xml b/mda-cli/src/test/manual/MDA-260/config.xml
new file mode 100644
index 0000000..6748fc0
--- /dev/null
+++ b/mda-cli/src/test/manual/MDA-260/config.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:c="http://www.springframework.org/schema/c"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xmlns:util="http://www.springframework.org/schema/util"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="
+    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
+
+    <import resource="classpath:net/shibboleth/metadata/beans.xml"/>
+
+    <bean class="net.shibboleth.shared.spring.config.IdentifiableBeanPostProcessor"/>
+
+    <bean id="test" parent="mda.SimplePipeline">
+        <property name="stages">
+            <list>
+                <bean id="stage1" parent="mda.CompositeStage" p:loggingProgress="true">
+                    <property name="stages">
+                        <list>
+                            <bean id="stage1a" parent="mda.CompositeStage" p:loggingProgress="true"/>
+                            <bean id="stage1b" parent="mda.CompositeStage"/>
+                        </list>
+                    </property>
+                </bean>
+                <bean id="stage2" parent="mda.CompositeStage" p:loggingProgress="true"/>
+            </list>
+        </property>
+    </bean>
+
+</beans>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list