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:
Jennifer Shehane
2020-03-11 22:25:50 +06:30
committed by GitHub
parent c650c91ac0
commit ec027e9c3a

View File

@@ -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) {