+nodetime = require 'nodetime'
+
+if process.env.NODETIME_KEY
+  nodetime.profile
+    accountKey: process.env.NODETIME_KEY
+    appName: process.env.CU_NODETIME_APP
+
 net = require 'net'
 fs = require 'fs'
 path = require 'path'

eco = require 'eco'
checkIdent = require 'ident-express'
request = require 'request'
nodetime = require 'nodetime'

{User} = require 'model/user'
{Dataset} = require 'model/dataset'

# Doesn't seem to do much.
mongoose.connection.on 'error', (err) ->
  console.warn "MONGOOSE CONNECTION ERROR #{err}"

# TODO: move into npm module
nodetimeLog = (req, res, next) ->
