[java-identity-provider] branch master updated: Minor logging changes.

Scott Cantor cantor.2 at osu.edu
Sun Sep 16 19:06:20 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=47f9c0e36f93c58a7b704e8e2d9d3e492ea8d6b6

The following commit(s) were added to refs/heads/master by this push:
       new  47f9c0e   Minor logging changes.
47f9c0e is described below

commit 47f9c0e36f93c58a7b704e8e2d9d3e492ea8d6b6
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Sun Sep 16 19:06:16 2018 -0400

    Minor logging changes.
---
 .../java/net/shibboleth/idp/saml/profile/impl/ReloadMetadata.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ReloadMetadata.java b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ReloadMetadata.java
index dade542..1c3054a 100644
--- a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ReloadMetadata.java
+++ b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/profile/impl/ReloadMetadata.java
@@ -166,19 +166,20 @@ public class ReloadMetadata extends AbstractProfileAction {
             if (toProcess != null) {
                 if (toProcess instanceof RefreshableMetadataResolver) {
                     ((RefreshableMetadataResolver)toProcess).refresh();
+                    log.debug("{} Refreshed metadata resolver: '{}'", getLogPrefix(), id);
                 } else if (toProcess instanceof ClearableMetadataResolver) {
                     ((ClearableMetadataResolver)toProcess).clear();
+                    log.debug("{} Cleared metadata resolver: '{}'", getLogPrefix(), id);
                 }
-                log.debug("{} Refreshed metadata from '{}'", getLogPrefix(), id);
                 getHttpServletResponse().setStatus(HttpServletResponse.SC_OK);
                 getHttpServletResponse().getWriter().println("Metadata reloaded for '" + id + "'");
             } else {
-                log.warn("{} Unable to locate refreshable or clearable metadata source '{}'", getLogPrefix(), id);
+                log.warn("{} Unable to locate refreshable or clearable metadata resolver: '{}'", getLogPrefix(), id);
                 getHttpServletResponse().sendError(HttpServletResponse.SC_NOT_FOUND, "Metadata source not found.");
             }
             
         } catch (final ResolverException e) {
-            log.error("{} Metadata source '{}': Error during refresh", getLogPrefix(), id, e);
+            log.error("{} Error refreshing/clearing metadata resolver: '{}'", getLogPrefix(), id, e);
             try {
                 getHttpServletResponse().sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage());
             } catch (final IOException e2) {

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


More information about the commits mailing list