     unless team == options.team then return
     esa.getPost post_id, (post) ->
       robot.emit 'esa.hear.post', res, post
-      robot.emit 'esa.debug', "emit esa.hear.post with post:\n#{post}"
+      robot.emit 'esa.debug', "emit esa.hear.post with post:\n#{JSON.stringify(post)}"
 
   robot.hear /https:\/\/(.+)\.esa\.io\/posts\/(\d+)\#comment-(\d+)\b/, (res) ->
     robot.emit 'esa.debug', 'heared comment url'

      res.writeHead(409)
      res.end()
    .handle (kind, data) ->
      robot.emit 'esa.debug', "emit esa.webhook with kind: #{kind}\n data:\n#{data}"
      robot.emit 'esa.webhook', kind, data
      res.writeHead(204)
      res.end()

    esa.getComment comment_id, (comment) ->
      esa.getPost post_id, (post) ->
        robot.emit 'esa.hear.comment', res, comment, post
        robot.emit 'esa.debug', "emit esa.hear.comment with post:\n#{JSON.stringify(post)}\n comment:\n#{JSON.stringify(comment)}"

  robot.router.post options.endpoint, (req, res) ->
    robot.emit 'esa.debug', "received a webhook by #{req.headers['user-agent']}"
