   restMode = if env is 'test' then 'development' else env
   # The REST server command.
   qirest = if restMode? then "qirest --#{ restMode }" else 'qirest'
-  
+
   # The callback after the REST server is started.
   start_eve = ->
     # The server port.

    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()
