From 1942ca66f458051714b2c0d9ef4cbfd58892e9aa Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 4 Apr 2016 22:27:42 +0200 Subject: [PATCH] better osc debug log --- CHANGELOG.md | 1 + main/osc.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af7c39db..8cfd1796 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - node-osc 2.0.3 - features - `compact` option added to knob and fader + - if an osc input port is specified, osc messages will be sent from it. This enhances compatibility with apps that send their feedback messages directly to the sender. ## 0.4.5 diff --git a/main/osc.js b/main/osc.js index 281b4a6b..fa01c1e0 100644 --- a/main/osc.js +++ b/main/osc.js @@ -12,7 +12,7 @@ module.exports = function(ipc, settings) { var data = {path:msg.shift(),args:msg} if (data.args.length==1) data.args = data.args[0] ipc.send('receiveOsc',data) - if (debug) console.log('OSC received: ',data,rinfo) + if (debug) console.log('OSC received: ',data, 'From : ' + rinfo.address + ':' + rinfo.port) }) }