[java-identity-provider COMMIT] /trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/ReloadServiceCo...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Oct 7 10:10:41 EDT 2014
Author: scantor
Date: Tue Oct 7 10:10:40 2014
New Revision: 6645
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6645&view=rev
Log:
Add some logging, and include a positive confirmation of success.
Modified:
trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/ReloadServiceConfiguration.java
Modified: trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/ReloadServiceConfiguration.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/ReloadServiceConfiguration.java?rev=6645&r1=6644&r2=6645&view=diff
==============================================================================
--- trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/ReloadServiceConfiguration.java (original)
+++ trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/impl/ReloadServiceConfiguration.java Tue Oct 7 10:10:40 2014
@@ -127,13 +127,18 @@
service.reload();
log.debug("{} Reloaded configuration for '{}'", getLogPrefix(), id);
getHttpServletResponse().setStatus(HttpServletResponse.SC_OK);
+ getHttpServletResponse().getWriter().println("Configuration reloaded.");
} catch (final ServiceException e) {
log.error("{} Error reloading service configuration for '{}'", getLogPrefix(), id, e);
try {
getHttpServletResponse().sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage());
} catch (final IOException e2) {
+ log.error("{} I/O error responding to request", getLogPrefix(), e2);
ActionSupport.buildEvent(profileRequestContext, EventIds.IO_ERROR);
}
+ } catch (final IOException e) {
+ log.error("{} I/O error responding to request", getLogPrefix(), e);
+ ActionSupport.buildEvent(profileRequestContext, EventIds.IO_ERROR);
}
}
More information about the commits
mailing list