configurable log level
This commit is contained in:
parent
feac70580e
commit
4a4881b7ac
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue