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

master
Michael Demetriou 2019-10-21 19:44:10 +03:00
parent 5bbc0fca4c
commit 7eb1d2e2b2
1 changed files with 2 additions and 0 deletions

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: