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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
880d1354
Commit
880d1354
authored
Oct 22, 2023
by
Jérome Perrin
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
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
5d54e2a8
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 @
880d1354
...
...
@@ -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