Skip to content

Commit

Permalink
fix: log uppercase user id & change log file name (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
davdarras authored Oct 11, 2024
1 parent a78897b commit ddfccab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>Modules for queen back-office</description>

<properties>
<revision>4.3.18</revision>
<revision>4.3.19</revision>
<changelist></changelist>
<java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public boolean preHandle(HttpServletRequest request, @Nonnull HttpServletRespons

Authentication authentication = authenticationHelper.getAuthenticationPrincipal();

String userId = authentication.getName();
String userId = authentication.getName().toUpperCase();

MDC.put("id", fishTag);
MDC.put("path", operationPath);
Expand Down
2 changes: 1 addition & 1 deletion queen-application/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<file>${LOG_FILE}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.gz</fileNamePattern>
<fileNamePattern>%d{yyyy-MM-dd}.${LOG_FILE}.gz</fileNamePattern>
<maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY}</maxHistory>
</rollingPolicy>

Expand Down

0 comments on commit ddfccab

Please sign in to comment.