Commit 6cbea7a1 authored by Sergey Razuvaev's avatar Sergey Razuvaev

test logger

parent d40e26df
...@@ -119,11 +119,11 @@ Context.prototype.end = function () { ...@@ -119,11 +119,11 @@ Context.prototype.end = function () {
}; };
Context.prototype.sendCommand = function (command) { Context.prototype.sendCommand = function (command) {
if (this.debug) this.log({ command: 'command' }); if (this.debug) this.log({ command: command });
var self = this; var self = this;
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
self.send(command + '\n', function (err, result) { self.send(command + '\n', function (err, result) {
if (self.debug) this.log({ err: err, result: result }); if (self.debug) self.log({ err: err, result: result });
if (err) { if (err) {
reject(err); reject(err);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment