How to disable logs, even the ones from the error reporter? #19109
Unanswered
devfservant
asked this question in
Questions and Help
Replies: 2 comments 2 replies
-
Has anyone was able to come up with alternative solution? |
Beta Was this translation helpful? Give feedback.
2 replies
-
FYI I've open #28406 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my
cy.login
custom command implementation, I am doing something like this:It works well and I plan to put it in my pipeline using the
cypress run
command.My problem is that if the request fails, the Cypress error reporter will log the entire request body, even its secrets,
which is of course problematic from a security point of view:
How can I prevent Cypress from printing such detailed logs?
It tried:
but it did not help.
Finally, I ended up with:
but I am not satisfied with this solution.
I am afraid it may not be suitable for other cases of errors, which would log the entire request body.
How would you proceed?
EDIT:
I saw the
--quiet
flag which might help, but how would you do to silent just thecy.request
output?Beta Was this translation helpful? Give feedback.
All reactions