Skip to content

Commit 1d77afb

Browse files
committed
Fixes for monitoring
1 parent 00d713a commit 1d77afb

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/ContainerProxyApplication.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,6 @@ public JSR353Module jsr353Module() {
148148
return new JSR353Module();
149149
}
150150

151-
@Bean
152-
@ConditionalOnProperty(name = "spring.session.store-type", havingValue = "redis")
153-
public <S extends Session> SessionRegistry sessionRegistry(FindByIndexNameSessionRepository<S> sessionRepository) {
154-
return new SpringSessionBackedSessionRegistry<S>(sessionRepository);
155-
}
156-
157151
@Bean
158152
public HealthIndicator redisSessionHealthIndicator(RedisConnectionFactory rdeRedisConnectionFactory) {
159153
if (Objects.equals(environment.getProperty("spring.session.store-type"), "redis")) {

src/main/java/eu/openanalytics/containerproxy/service/UserService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ public void onHttpSessionDestroyedEvent(HttpSessionDestroyedEvent event) {
253253

254254
@EventListener
255255
public void onHttpSessionCreated(HttpSessionCreatedEvent event) {
256-
log.info(String.format("Anonymous user logged in [user: %s]", event.getSession().getId()));
257256
if (authBackend.getName().equals("none")) {
257+
log.info(String.format("Anonymous user logged in [user: %s]", event.getSession().getId()));
258258
applicationEventPublisher.publishEvent(new UserLoginEvent(
259259
this,
260260
event.getSession().getId(),

0 commit comments

Comments
 (0)