Skip to content

Commit

Permalink
OPHYK-208 enable access log in all environments
Browse files Browse the repository at this point in the history
  • Loading branch information
tokarls committed Jan 10, 2025
1 parent a076a4b commit 7bbacdd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fi.vm.sade.henkiloui.configurations;

import ch.qos.logback.access.tomcat.LogbackValve;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.ErrorPage;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
Expand All @@ -13,7 +12,6 @@
public class AccessLogConfiguration {

@Bean
@ConditionalOnProperty(name = "logback.access")
WebServerFactoryCustomizer<TomcatServletWebServerFactory> containerCustomizer() {
return container -> {
container.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fi.vm.sade.oppijanumerorekisteri.configurations;

import ch.qos.logback.access.tomcat.LogbackValve;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.web.embedded.tomcat.TomcatContextCustomizer;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.WebServerFactory;
Expand Down

0 comments on commit 7bbacdd

Please sign in to comment.