Commit 7d63312c authored by Leo Iannacone's avatar Leo Iannacone

added config.debug.socket enable/disable io.sockets debug log

parent ff18064a
......@@ -12,8 +12,12 @@ var express = require('express')
var app = module.exports = express.createServer();
//var io = require('socket.io').listen(app, { log: false }); // disable-log
var io = require('socket.io').listen(app);
var io;
if (config.debug.socket)
io = require('socket.io').listen(app);
else
io = require('socket.io').listen(app, { log: false }); // disable-log
// Configuration
app.configure(function(){
......
......@@ -12,6 +12,9 @@ config.host = 'localhost'
config.port = 3000
config.user = 'www-data' // who will run server [not fully tested yet]
config.debug = {}
config.debug.socket = false
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-amd64'
config.debomatic.jsonfile = '/var/log/debomatic.json'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment