From 3e4d4df008bb84e431afc9ab1816f996cc14da0a Mon Sep 17 00:00:00 2001 From: Harshpreet Singh Johar Date: Sat, 3 Feb 2024 15:43:39 +0530 Subject: [PATCH] Event description changed to TEXT --- src/main/java/com/pecacm/backend/entities/Event.java | 2 +- src/main/java/com/pecacm/backend/util/LoggingInterceptor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/pecacm/backend/entities/Event.java b/src/main/java/com/pecacm/backend/entities/Event.java index 6951d53..aa0511a 100644 --- a/src/main/java/com/pecacm/backend/entities/Event.java +++ b/src/main/java/com/pecacm/backend/entities/Event.java @@ -32,7 +32,7 @@ public class Event { @Column(name = "end_date") private LocalDateTime endDate; - @Column(name="description", nullable = false) + @Column(name="description", nullable = false, columnDefinition = "TEXT") private String description; @Column(name = "related_link") diff --git a/src/main/java/com/pecacm/backend/util/LoggingInterceptor.java b/src/main/java/com/pecacm/backend/util/LoggingInterceptor.java index 750b2ba..7c69a08 100644 --- a/src/main/java/com/pecacm/backend/util/LoggingInterceptor.java +++ b/src/main/java/com/pecacm/backend/util/LoggingInterceptor.java @@ -12,7 +12,7 @@ public class LoggingInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { - logger.info("Received request: {} {} Authorization={}", request.getMethod(), request.getRequestURI(), request.getHeader("Authorization")); + logger.info("Received request: {} {}", request.getMethod(), request.getRequestURI()); return true; }