       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.debug', "emit esa.webhook with kind: #{JSON.stringify(kind)}\n data:\n#{JSON.stringify(data)}"
       robot.emit 'esa.webhook', kind, data
       res.writeHead(204)
       res.end()

    robot.emit 'esa.debug', 'heared stats command'
    esa.getStats (stats) ->
      robot.emit 'esa.hear.stats', res, stats
      robot.emit 'esa.debug', "emit esa.hear.stats with stats:\n#{stats}"

  robot.hear /https:\/\/(.+)\.esa\.io\/posts\/(\d+)(?!(\#comment-\d+))\b/, (res) ->
    robot.emit 'esa.debug', 'heared post url'

    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#{JSON.stringify(post)}"

  robot.hear /https:\/\/(.+)\.esa\.io\/posts\/(\d+)\#comment-(\d+)\b/, (res) ->
    robot.emit 'esa.debug', 'heared comment url'
