ensure we log events in a debug fashion at least
MODIFY
lib/basedriver/driver.js
lib/basedriver/driver.js
@@ -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})`);
}
/*

ensure we log events in a debug fashion at least