Skip to content

Commit

Permalink
deploy: 1.1.1 배포 #484 (#491)
Browse files Browse the repository at this point in the history
* fix: 누락된 not 연산자 추가

* refactor: whitelist 추가 #489 (#490)

---------

Co-authored-by: hxeyexn <[email protected]>
  • Loading branch information
linirini and hxeyexn authored Oct 16, 2024
1 parent 560573b commit 5c47e5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class MemoryUpdateActivity :
}

override fun onPeriodSelectionClicked() {
if (dateRangePicker.isAdded) {
if (!dateRangePicker.isAdded) {
dateRangePicker.show(supportFragmentManager, dateRangePicker.toString())
}
}
Expand Down
11 changes: 7 additions & 4 deletions backend/src/main/java/com/staccato/config/log/LoggingFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,29 @@
import java.util.List;
import java.util.Objects;
import java.util.UUID;

import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import org.slf4j.MDC;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Component;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.StopWatch;
import org.springframework.web.filter.OncePerRequestFilter;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class LoggingFilter extends OncePerRequestFilter {
private static final String IDENTIFIER = "request_id";
private static final List<String> WHITE_LIST = List.of("/h2-console/**", "/favicon/**", "/swagger-ui/**", "/v3/api-docs/**");
private static final List<String> WHITE_LIST = List.of(
"/h2-console/**",
"/favicon/**",
"/swagger-ui/**",
"/v3/api-docs/**",
"/metrics",
"/actuator/**");

@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
Expand Down

0 comments on commit 5c47e5f

Please sign in to comment.