Skip to content

Commit

Permalink
always debug all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
makefu committed Jul 23, 2015
1 parent 8f78540 commit e3366f5
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,11 @@ app.use(Express.session({'secret': 'aidsballs'}));
app.use(app.router);
app.use(Express.static(__dirname + '/public'));

/*
app.configure('development', function () {
app.use(Express.errorHandler({
dumpExceptions: true,
showStack: true
}));
logger.setLevel('DEBUG');
});*/

var accessLog = Fs.createWriteStream(__dirname + '/logs/access.log', {
encoding: 'utf-8',
flags: 'a'
});

app.use(Express.logger({ stream: accessLog }));
app.use(Express.errorHandler());
Log4js.addAppender(Log4js.fileAppender(LOGFILE));
logger.setLevel('ERROR');

app.use(Express.errorHandler({
dumpExceptions: true,
showStack: true
}));
logger.setLevel('DEBUG');
var server =require('http').createServer(app)
Ws.createWebsocketServer(server, logger);
logger.info('Mediengewitter server listening on port: ' + PORT);
Expand Down

0 comments on commit e3366f5

Please sign in to comment.