Skip to content

Commit 0c499d3

Browse files
committed
debug info
1 parent a9d08a2 commit 0c499d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,10 @@ private Future handleLogoutAsyncV2(RoutingContext rc) {
10261026
body.put("optout", "OK");
10271027
ResponseUtil.SuccessV2(rc, body);
10281028
} else {
1029-
rc.fail(500);
1029+
Throwable cause = ar.cause();
1030+
String errorMsg = cause != null ? cause.getMessage() : "Unknown error during opt-out";
1031+
LOGGER.error("V2 logout failed for traceId={}: {}", uidTraceId, errorMsg, cause);
1032+
ResponseUtil.LogErrorAndSendResponse(ResponseStatus.GenericError, 500, rc, errorMsg);
10301033
}
10311034
promise.complete();
10321035
});

0 commit comments

Comments
 (0)