Remove redundant logging

This commit is contained in:
Rene Pfeuffer
2019-11-06 08:32:00 +01:00
parent 4e053b1aa0
commit b47cc56a86

View File

@@ -82,8 +82,6 @@ public class XsrfAccessTokenEnricher implements AccessTokenEnricher {
if (configuration.isEnabledXsrfProtection()) { if (configuration.isEnabledXsrfProtection()) {
if (isEnrichable()) { if (isEnrichable()) {
builder.custom(Xsrf.TOKEN_KEY, createToken()); builder.custom(Xsrf.TOKEN_KEY, createToken());
} else {
LOG.trace("skip xsrf enrichment, because jwt session is started from a non wui client");
} }
} else { } else {
LOG.trace("xsrf is disabled, skip xsrf enrichment"); LOG.trace("xsrf is disabled, skip xsrf enrichment");
@@ -98,15 +96,16 @@ public class XsrfAccessTokenEnricher implements AccessTokenEnricher {
return true; return true;
} else { } else {
LOG.trace("skip xsrf enrichment, because jwt session is started from a non wui client"); LOG.trace("skip xsrf enrichment, because jwt session is started from a non wui client");
return false;
} }
} catch (ProvisionException ex) { } catch (ProvisionException ex) {
if (ex.getCause() instanceof OutOfScopeException) { if (ex.getCause() instanceof OutOfScopeException) {
LOG.trace("skip xsrf enrichment, because no request scope is available"); LOG.trace("skip xsrf enrichment, because no request scope is available");
return false;
} else { } else {
throw ex; throw ex;
} }
} }
return false;
} }
@VisibleForTesting @VisibleForTesting