configurable log level

This commit is contained in:
Andrew Kelley 2012-01-21 20:14:18 -08:00
parent feac70580e
commit 4a4881b7ac

View file

@ -4,6 +4,7 @@ socketio = require 'socket.io'
static = require 'node-static'
config =
log_level: 3
http:
port: 7777
mpd:
@ -31,6 +32,7 @@ app = http.createServer((request, response) ->
).listen(config.http.port)
io = socketio.listen(app)
io.set 'log level', config.log_level
io.sockets.on 'connection', (socket) ->
socket.on 'ToMpd', (data) ->
console.log "[in] " + data