Log JSON when receiving a "Create" activity if debug flag is on

This commit is contained in:
Michael Demetriou 2019-10-21 19:44:10 +03:00
parent 5bbc0fca4c
commit 7eb1d2e2b2

View file

@ -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: