Skip to content

Commit

Permalink
Allow WARN messages to be flagged for the import pipeline
Browse files Browse the repository at this point in the history
Resolves ukf/ukf-meta#169.
  • Loading branch information
iay committed Nov 26, 2018
1 parent 6b112f4 commit 2122eb7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,21 @@
</property>
</bean>

<!--
warningAnnouncer
A pipeline stage that logs any warnings present,
but takes no action on them.
-->
<bean id="warningAnnouncer" parent="mda.StatusMetadataLoggingStage">
<property name="identificationStrategy" ref="identificationStrategy"/>
<property name="selectionRequirements">
<list>
<value>#{T(net.shibboleth.metadata.WarningStatus)}</value>
</list>
</property>
</bean>

<!--
warningAndErrorAnnouncer
Expand Down
3 changes: 3 additions & 0 deletions mdx/uk/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@
<ref bean="check_vhosts"/>
<ref bean="errorTerminatingFilter"/>

<!-- If there are no errors, log any warnings. -->
<ref bean="warningAnnouncer"/>

<!-- write output file -->
<ref bean="serializeImportedMetadata"/>
</list>
Expand Down

0 comments on commit 2122eb7

Please sign in to comment.