midi: debug messages displayed as errors
This commit is contained in:
parent
4662a39303
commit
29c0748439
3 changed files with 8 additions and 3 deletions
|
|
@ -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