diff --git a/pom.xml b/pom.xml
index b58d57e7..5b624e1e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.uid2
uid2-core
- 2.30.19
+ 2.30.20-alpha-153-SNAPSHOT
UTF-8
diff --git a/src/main/java/com/uid2/core/handler/GenericFailureHandler.java b/src/main/java/com/uid2/core/handler/GenericFailureHandler.java
index 24a5fb79..3176ff2f 100644
--- a/src/main/java/com/uid2/core/handler/GenericFailureHandler.java
+++ b/src/main/java/com/uid2/core/handler/GenericFailureHandler.java
@@ -1,5 +1,8 @@
package com.uid2.core.handler;
+import com.uid2.shared.auth.IAuthorizable;
+import com.uid2.shared.auth.OperatorKey;
+import com.uid2.shared.middleware.AuthMiddleware;
import io.vertx.core.Handler;
import io.vertx.core.http.HttpClosedException;
import io.vertx.core.http.HttpServerResponse;
@@ -19,11 +22,18 @@ public void handle(RoutingContext ctx) {
String url = ctx.normalizedPath();
Throwable t = ctx.failure();
+ final IAuthorizable profile = AuthMiddleware.getAuthClient(ctx);
+ final OperatorKey operatorKey = profile instanceof OperatorKey ? (OperatorKey) profile : null;
+ String participant = "unknown";
+ if (operatorKey != null) {
+ participant = operatorKey.getName();
+ }
+
if (t != null) {
if (statusCode >= 500 && statusCode < 600) { // 5xx is server error, so error
- LOGGER.error("URL: [{}] - Error response code: [{}] - Error:", url, statusCode, t);
+ LOGGER.error("URL: [{}], Participant: [{}] - Error response code: [{}] - Error:", url, participant, statusCode, t);
} else if (statusCode >= 400 && statusCode < 500) { // 4xx is user error, so just warn
- LOGGER.warn("URL: [{}] - Error response code: [{}] - Error:", url, statusCode, t);
+ LOGGER.warn("URL: [{}], Participant: [{}] - Error response code: [{}] - Error:", url, participant, statusCode, t);
}
}