Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
91adac4b
Commit
91adac4b
authored
Oct 22, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zelenium: output selenium logs to javascript console
so that we can see them on testnode.
parent
e3b36c38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/Zelenium/selenium/core/scripts/selenium-logging.js
product/Zelenium/selenium/core/scripts/selenium-logging.js
+6
-0
No files found.
product/Zelenium/selenium/core/scripts/selenium-logging.js
View file @
91adac4b
...
...
@@ -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
);
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment