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

test logger

parent d40e26df
......@@ -119,11 +119,11 @@ Context.prototype.end = function () {
};
Context.prototype.sendCommand = function (command) {
if (this.debug) this.log({ command: 'command' });
if (this.debug) this.log({ command: command });
var self = this;
return new Promise(function (resolve, reject) {
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) {
reject(err);
} 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