Skip to content

Commit

Permalink
cli: fix event handling
Browse files Browse the repository at this point in the history
PR-URL: #196
Reviewed-By: Mykola Bilochub <nbelochub@gmail.com>
  • Loading branch information
lundibundi authored and belochub committed Jan 22, 2018
1 parent 29c9ced commit cb7ed8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/command-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module.exports = class CommandProcessor extends EventEmitter {
this.cli.api = filterApiCompletions(api, ['_', 'domain']);
// TODO: make event registering generic
connection.on('event', (event) => {
this.log(`Received remote event '${event.remoteEventName}'` +
this.cli.log(`Received remote event '${event.remoteEventName}'` +
` in interface '${event.interfaceName}':` +
` ${jstp.stringify(event.remoteEventArgs)}`);
});
Expand Down

0 comments on commit cb7ed8b

Please sign in to comment.