Merge pull request #107 from appium/jlipps-events

ensure we log events in a debug fashion at least
This commit is contained in:
Jonathan Lipps
2017-03-03 14:52:40 -08:00
committed by GitHub
+4 -1
View File
@@ -84,7 +84,10 @@ class BaseDriver extends MobileJsonWireProtocol {
if (!this._eventHistory[eventName]) {
this._eventHistory[eventName] = [];
}
this._eventHistory[eventName].push(Date.now());
let ts = Date.now();
let logTime = (new Date(ts)).toTimeString();
this._eventHistory[eventName].push(ts);
log.debug(`Event '${eventName}' logged at ${ts} (${logTime})`);
}
/*