Skip to content

Commit

Permalink
Only log ActivityPub info when debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaer committed Nov 26, 2018
1 parent 42a4725 commit 94badbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions activitypub.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ func handleFetchCollectionInbox(app *app, w http.ResponseWriter, r *http.Request
// 2) Errors are propagated to res.Deserialize call below
m["@context"] = []string{activitystreams.Namespace}
b, _ := json.Marshal(m)
log.Info("Follow: %s", b)
if debugging {
log.Info("Follow: %s", b)
}

_, followID := f.GetId()
if followID == nil {
Expand Down Expand Up @@ -287,7 +289,9 @@ func handleFetchCollectionInbox(app *app, w http.ResponseWriter, r *http.Request

m["@context"] = []string{activitystreams.Namespace}
b, _ := json.Marshal(m)
log.Info("Undo: %s", b)
if debugging {
log.Info("Undo: %s", b)
}

a.AppendObject(u.Raw())
_, to = u.GetActor(0)
Expand Down

0 comments on commit 94badbc

Please sign in to comment.