Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = 'com.flexcodelabs'
version = '0.0.40'
version = '0.0.41'
description = 'Flextuma App'

java {
Expand Down
3 changes: 1 addition & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ services:
- SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT=org.hibernate.dialect.PostgreSQLDialect
- SPRING_DATA_REDIS_HOST=${SPRING_DATA_REDIS_HOST}
- SPRING_DATA_REDIS_PORT=${SPRING_DATA_REDIS_PORT:-6379}
- APP_FRONTEND_DIRECTORY=client
- APP_FRONTEND_DIRECTORY=/app/client
volumes:
- ./src:/app/src
- ./build/classes/java/main:/app/extracted/WEB-INF/classes
- ./client:/app/client

networks:
default:
external: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,16 @@ private void logRequest(HttpServletRequest request, HttpServletResponse response
if (shouldSkipLogging(fullUri)) {
return;
}

int status = statusOverride > 0 ? statusOverride : response.getStatus();
if (status == HttpServletResponse.SC_NOT_FOUND) {
return;
}

request.setAttribute("REQUEST_LOGGED", true);
String username = getUsername(request);
long duration = System.currentTimeMillis() - startTime;

int status = statusOverride > 0 ? statusOverride : response.getStatus();
boolean isError = status >= 400 || ex != null;

String logColor = isError ? "\u001B[31m" : "\u001B[32m";
Expand Down