Commit 91adac4b authored by Jérome Perrin's avatar Jérome Perrin

Zelenium: output selenium logs to javascript console

so that we can see them on testnode.
parent e3b36c38
......@@ -117,18 +117,24 @@ Logger.prototype = {
},
debug: function(message) {
// debug is too verbose
// console.debug(new Date().toISOString(), message);
this.log("debug", message);
},
info: function(message) {
// selenium instructions are logged with level info, we try not to include passwords in logs.
console.info(new Date().toISOString(), message.toString().replace(/password.*/, '***password redacted***'));
this.log("info", message);
},
warn: function(message) {
console.warn(new Date().toISOString(), message);
this.log("warn", message);
},
error: function(message) {
console.error(new Date().toISOString(), message);
this.log("error", message);
},
......
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