From 7eb1d2e2b21b6656b7889478342d751327b84444 Mon Sep 17 00:00:00 2001 From: Michael Demetriou Date: Mon, 21 Oct 2019 19:44:10 +0300 Subject: [PATCH] Log JSON when receiving a "Create" activity if debug flag is on --- http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http.go b/http.go index 061a67a..7fd2220 100644 --- a/http.go +++ b/http.go @@ -272,6 +272,8 @@ func Serve(actors map[string]Actor) { log.Error("No such actor: " + mux.Vars(r)["actor"]) return } + log.Info("Received the following activity from: " + r.UserAgent()) + PrettyPrintJSON(b) actor.OnReceiveContent(activity) default: