From 92482ef767b475b7b648f0852fd7474d823adbbe Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 23 Jan 2023 11:19:55 +0100
Subject: [PATCH] fix logout with exception id

---
 .../itvsh/goofy/common/errorhandling/ExceptionController.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/goofy-server/src/main/java/de/itvsh/goofy/common/errorhandling/ExceptionController.java b/goofy-server/src/main/java/de/itvsh/goofy/common/errorhandling/ExceptionController.java
index 8d1fb7d38d..a63956dc64 100644
--- a/goofy-server/src/main/java/de/itvsh/goofy/common/errorhandling/ExceptionController.java
+++ b/goofy-server/src/main/java/de/itvsh/goofy/common/errorhandling/ExceptionController.java
@@ -176,8 +176,7 @@ public class ExceptionController {
 	public ApiError handleRuntimeException(RuntimeException e) {
 		var exceptionId = createExceptionId();
 		var messageWithExceptionId = ExceptionUtil.formatMessageWithExceptionId(e.getMessage(), exceptionId);
-		LOG.error("RuntimeException on Request", messageWithExceptionId);
-		LOG.error("RuntimeException on Request", e);
+		LOG.error("RuntimeException on Request: " + messageWithExceptionId, e);
 		return buildRuntimeApiError(messageWithExceptionId, exceptionId);
 	}
 
-- 
GitLab