mirror of
https://github.com/appium/appium.git
synced 2026-10-28 12:21:20 +08:00
Merge pull request #107 from appium/jlipps-events
ensure we log events in a debug fashion at least
This commit is contained in:
@@ -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})`);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user