mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-30 19:18:45 -06:00
Quote strings in DEBUG logs for easier reading (#6700)
* Quote strings in DEBUG logs for easier reading * Use object in log instead of static strings
This commit is contained in:
@@ -17,9 +17,10 @@ function getLinuxBrowser (
|
||||
}
|
||||
|
||||
log(
|
||||
'Could not extract version from %s using regex %s',
|
||||
stdout,
|
||||
versionRegex,
|
||||
'Could not extract version from stdout using regex: %o', {
|
||||
stdout,
|
||||
versionRegex,
|
||||
},
|
||||
)
|
||||
|
||||
throw notInstalledErr(binary)
|
||||
@@ -53,7 +54,7 @@ export function getVersionString (path: string) {
|
||||
return execa
|
||||
.stdout(path, ['--version'])
|
||||
.then(trim)
|
||||
.then(tap(partial(log, ['stdout: %s'])))
|
||||
.then(tap(partial(log, ['stdout: "%s"'])))
|
||||
}
|
||||
|
||||
export function detect (browser: Browser) {
|
||||
|
||||
Reference in New Issue
Block a user