add some logs

Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
olivier lamy 2017-05-08 21:17:54 +10:00
parent 1b13cbd019
commit 69c41ad38b
1 changed files with 4 additions and 0 deletions

View File

@ -285,10 +285,14 @@ public class RequestValidationInterceptor extends AbstractInterceptor implements
enabled = config.getBoolean(UserConfigurationKeys.REST_CSRF_ENABLED,true);
if (!enabled) {
log.info("CSRF Filter is disabled by configuration");
} else {
log.info("CSRF Filter is enable");
}
checkToken = !config.getBoolean(UserConfigurationKeys.REST_CSRF_DISABLE_TOKEN_VALIDATION, false);
if (!checkToken) {
log.info("CSRF Token validation is disabled by configuration");
} else {
log.info("CSRF Token validation is enable");
}
}