Skip to content

Commit b594b7b

Browse files
authored
Merge pull request #242 from broadwaylamb/more-logging
More verbose logging for receiving unsupported activities
2 parents 20a42e7 + e4bbbd6 commit b594b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/smithereen/routes/ActivityPubRoutes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ else if(o!=null)
974974
if(Config.DEBUG)
975975
throw new BadRequestException("No handler found for activity type: "+getActivityType(activity));
976976
else
977-
LOG.error("Received and ignored an activity of an unsupported type {}", getActivityType(activity));
977+
LOG.error("Received and ignored an activity of an unsupported type {}: {}", getActivityType(activity), activity.asRootActivityPubObject(ctx, req.host()));
978978
return "";
979979
}
980980

@@ -1066,7 +1066,7 @@ else if(o!=null)
10661066
if(Config.DEBUG)
10671067
throw new BadRequestException("No handler found for activity type: "+getActivityType(activity));
10681068
else
1069-
LOG.error("Received and ignored an activity of an unsupported type {}", getActivityType(activity));
1069+
LOG.error("Received and ignored an activity of an unsupported type {}: {}", getActivityType(activity), activity.asRootActivityPubObject(ctx, req.host()));
10701070
return "";
10711071
}
10721072

0 commit comments

Comments
 (0)