Log JSON when receiving a "Create" activity if debug flag is on
parent
5bbc0fca4c
commit
7eb1d2e2b2
2
http.go
2
http.go
|
@ -272,6 +272,8 @@ func Serve(actors map[string]Actor) {
|
||||||
log.Error("No such actor: " + mux.Vars(r)["actor"])
|
log.Error("No such actor: " + mux.Vars(r)["actor"])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.Info("Received the following activity from: " + r.UserAgent())
|
||||||
|
PrettyPrintJSON(b)
|
||||||
actor.OnReceiveContent(activity)
|
actor.OnReceiveContent(activity)
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue