   theHub = req.app.hub
   theFeed.unshift activity
   theHub.distribute activity, localURL("feed.json"), (err) ->
-
+    if err
+      console.error err
+    else
+      console.dir {message: "distributed", activity: activity.id}
   res.writeHead 201
   res.end()
 

exports.publish = (req, res) ->
  res.render "publish",
    title: "Help for publishers"


exports.subscribe = (req, res) ->
  res.render "subscribe",

    else
      namespace = "__default__"
      name = dotted
    params[namespace] = {} unless params.hasOwnProperty(namespace)
    params[namespace][name] = body[dotted]
  params

