New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quote strings in DEBUG logs for easier reading #6700
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Test summaryRun details
View run in Cypress Dashboard This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super, makes sense
packages/launcher/lib/linux/index.ts
Outdated
'Could not extract version from %s using regex %s', | ||
'Could not extract version from "%s" using regex %s', | ||
stdout, | ||
versionRegex, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm more partial to using the object notation for things like this, since it will include the variable names and ensure strings are quoted correctly:
'Could not extract version from %s using regex %s', | |
'Could not extract version from "%s" using regex %s', | |
stdout, | |
versionRegex, | |
'Could not extract version from stdout %o', { stdout, versionRegex }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with object
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
So, I was looking at logs #6669 from the
cypress:launcher
trying to figure out why we weren’t detecting someones browser and just see the below.I thought that Running without a11y support was some kind of log from Cypress talking about a11y? I dunno. This was confusing and would have been clearer to distinguish Cypress logs from the actual strings we found with quotation marks in the DEBUG logs like below:
Before
After