       else if id
         fs.writeFile(argv.id, id, (err) ->
           if err then return cb err
-          console.log("Claimed by #{id}")
+          loga "Claimed by #{id}"
           owner = id
           cb())
       else

  # and sends it to the client.  TODO: consider caching remote pages locally.
  app.get(///^/remote/([a-zA-Z0-9:\.-]+)/([a-z0-9-]+)\.json$///, (req, res) ->
    remoteGet(req.params[0], req.params[1], (e, page, status) ->
      if e then console.log "remoteGet error:", e if argv.debug
      res.send(page, status)
    )
  )

  )

  # Show all of the options a server is using.
  log argv

  # Swallow errors when in production.
  app.configure('production', ->
