[java-identity-provider] branch master updated: Raise logging of suppressed, non-result-size errors.

Scott Cantor cantor.2 at osu.edu
Tue Sep 11 16:30:00 EDT 2018


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

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=b99e5804e2e863d862af5429962fb1b7e13e9606

The following commit(s) were added to refs/heads/master by this push:
       new  b99e580   Raise logging of suppressed, non-result-size errors.
b99e580 is described below

commit b99e5804e2e863d862af5429962fb1b7e13e9606
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Sep 11 16:29:58 2018 -0400

    Raise logging of suppressed, non-result-size errors.
---
 .../idp/attribute/resolver/AbstractResolverPlugin.java      | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AbstractResolverPlugin.java b/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AbstractResolverPlugin.java
index 4a36f44..3cf7f8c 100644
--- a/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AbstractResolverPlugin.java
+++ b/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AbstractResolverPlugin.java
@@ -203,9 +203,16 @@ public abstract class AbstractResolverPlugin<ResolvedType> extends AbstractIdent
                 if (propagateResolutionExceptions) {
                     throw e;
                 } else {
-                    log.debug(
-                            "Resolver plugin '{}' produced the following error but was configured not to propagate it.",
-                            getId(), e);
+                    if (e instanceof NoResultAnErrorResolutionException
+                            || e instanceof MultipleResultAnErrorResolutionException) {
+                        log.debug(
+                                "Resolver plugin '{}' produced the following error but was configured not to propagate",
+                                getId(), e);
+                    } else {
+                        log.error(
+                                "Resolver plugin '{}' produced the following error but was configured not to propagate",
+                                getId(), e);
+                    }
                     return null;
                 }
             }

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


More information about the commits mailing list