 uuid = require 'node-uuid'
 Q = require 'q'
 logger = require 'winston'
-logger.level = config.logger.level
-logger.colorize = true
+logger.remove logger.transports.Console
 cluster = require 'cluster'
 numCPUs = require('os').cpus().length
 nconf = require 'nconf'

clusterArg = nconf.get 'cluster'

# Configure clustering if relevent
if cluster.isMaster and clusterArg?

  if clusterArg is 'auto'
    clusterSize = numCPUs



  exports.startRestartServerAgenda = (done) ->
    # notify master to restart all workers in 2s
    setTimeout ->
      logger.debug 'Sending restart cluster message...'
      process.send('restart-all')
    , 2000
