       env = app.settings.env
       console.log "The qiprofile server is listening on port #{ port }" +
                   " in #{ env } mode."
-  
+
   # Start the REST app without logging to the console.
   spawn(qirest, QIREST_PORT, start_eve, {silent: true})
 

    headers:
      'x-timestamp': Date.now()
      'x-sent': true
    
  res.sendFile file, options, (err) ->
    if err
      console.log(err)

    '/var/log/qiprofile.log'
  catch err
    './log/qiprofile.log'

# The log file is either set in the environment or defaults to
# log/qiprofile.log in the current directory.
relLogFile = app.get('log') or defaultLogFile()
