Skip to content

Commit

Permalink
feat: Yamaha QL - use Winston logging instead of console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jan 30, 2020
1 parent ce021e9 commit d856e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utils/mixerConnections/YamahaQlClConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class QlClMixerConnection {
}

buffers.forEach((message) => {
console.log("Received Midi Message : ", message)
logger.verbose("Received Midi Message : " + message.toString('hex'))
if (this.checkMidiCommand(message, this.mixerProtocol.channelTypes[0].fromMixer
.CHANNEL_VU[0].mixerMessage)) {
let mixerValues: string[] = message.split(' ')
Expand Down Expand Up @@ -221,7 +221,7 @@ export class QlClMixerConnection {
command = command.replace('{level}', valueByte[0].toString(16) + ' ' + valueByte[1].toString(16))
let a = command.split(' ')
let buf = new Buffer(a.map((val:string) => { return parseInt(val, 16) }))
console.log("Sending Command :", command)
logger.verbose("Sending Command :" + command)
this.midiConnection.write(buf)
}

Expand Down

0 comments on commit d856e26

Please sign in to comment.