|
@@ -43,6 +43,7 @@ import java.io.IOException;
|
|
|
public class KMSExceptionsProvider implements ExceptionMapper<Exception> {
|
|
|
private static Logger LOG =
|
|
|
LoggerFactory.getLogger(KMSExceptionsProvider.class);
|
|
|
+ private final static Logger EXCEPTION_LOG = KMS.LOG;
|
|
|
|
|
|
private static final String ENTER = System.getProperty("line.separator");
|
|
|
|
|
@@ -100,6 +101,9 @@ public class KMSExceptionsProvider implements ExceptionMapper<Exception> {
|
|
|
KMSMDCFilter.getMethod(),
|
|
|
KMSMDCFilter.getURL(), getOneLineMessage(exception));
|
|
|
}
|
|
|
+ EXCEPTION_LOG.warn("User {} request {} {} caused exception.",
|
|
|
+ KMSMDCFilter.getUgi(), KMSMDCFilter.getMethod(),
|
|
|
+ KMSMDCFilter.getURL(), exception);
|
|
|
return createResponse(status, throwable);
|
|
|
}
|
|
|
|