Skip to content

Commit b3232ac

Browse files
authored
Fix caching of scope on servlet context (#318)
1 parent 2bbad6e commit b3232ac

File tree

1 file changed

+1
-2
lines changed
  • on-demand/on-demand-spring-boot-starter-web/src/main/java/no/entur/logging/cloud/spring/ondemand/web

1 file changed

+1
-2
lines changed

on-demand/on-demand-spring-boot-starter-web/src/main/java/no/entur/logging/cloud/spring/ondemand/web/OndemandFilter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class OndemandFilter extends HttpFilter {
2424
private final String FILTER = OndemandFilter.class.getName() + "-filter";
2525
private final String SCOPE = OndemandFilter.class.getName() + "-scope";
2626

27-
private final String DURATION = OndemandFilter.class.getName() + "-scope";
27+
private final String DURATION = OndemandFilter.class.getName() + "-duration";
2828

2929
static class ScopeAsyncListener implements AsyncListener {
3030

@@ -121,7 +121,6 @@ private HttpLoggingScopeFilter getHttpLoggingScopeFilter(HttpServletRequest http
121121
HttpLoggingScopeFilter filter = (HttpLoggingScopeFilter) httpServletRequest.getAttribute(FILTER);
122122
if(filter == null) {
123123
filter = filters.getScope(httpServletRequest);
124-
} else {
125124
httpServletRequest.setAttribute(FILTER, filter);
126125
}
127126
return filter;

0 commit comments

Comments
 (0)