midi: debug messages displayed as errors
This commit is contained in:
parent
4662a39303
commit
29c0748439
3 changed files with 8 additions and 3 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 1.8.5
|
||||
|
||||
- bug fixes
|
||||
- midi: debug messages displayed as errors
|
||||
|
||||
## 1.8.4
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "Libre and modular OSC / MIDI controller",
|
||||
"version": "1.8.4",
|
||||
"version": "1.8.5",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class MidiConverter {
|
|||
try {
|
||||
[name, data] = JSON.parse(message)
|
||||
} catch (err) {
|
||||
if (settings.read('debug')) console.error(`(DEBUG, MIDI) Unparsed python log:\n ${message}`)
|
||||
if (settings.read('debug')) console.error(`(ERROR, MIDI) Unparsed python log:\n ${message}`)
|
||||
}
|
||||
if (name == 'log') {
|
||||
if (data.indexOf('ERROR') > -1) {
|
||||
|
|
@ -95,7 +95,7 @@ class MidiConverter {
|
|||
console.log(data)
|
||||
}
|
||||
} else if (name == 'debug') {
|
||||
console.error('(DEBUG, MIDI) ' + data)
|
||||
console.log('(DEBUG, MIDI) ' + data)
|
||||
} else if (name == 'osc') {
|
||||
instance.receiveOsc(data)
|
||||
} else if (name == 'error') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue