mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: add more debugging info on Debug Runs (#9754)
This commit is contained in:
parent
004a99aaef
commit
f88729224a
@ -107,6 +107,19 @@ async function main() {
|
|||||||
parameters
|
parameters
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Add more logging when the GitHub Action Debugging option is set
|
||||||
|
// https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
|
||||||
|
const githubActionDebugging = process.env['RUNNER_DEBUG']
|
||||||
|
? {
|
||||||
|
DEBUG: 'puppeteer:*',
|
||||||
|
EXTRA_LAUNCH_OPTIONS: {
|
||||||
|
extraPrefsFirefox: {
|
||||||
|
'remote.log.level': 'Trace',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: {};
|
||||||
|
|
||||||
const env = extendProcessEnv([
|
const env = extendProcessEnv([
|
||||||
...parameters.map(param => {
|
...parameters.map(param => {
|
||||||
return parsedSuitesFile.parameterDefinitions[param];
|
return parsedSuitesFile.parameterDefinitions[param];
|
||||||
@ -121,6 +134,7 @@ async function main() {
|
|||||||
})
|
})
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
githubActionDebugging,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tmpDir = fs.mkdtempSync(
|
const tmpDir = fs.mkdtempSync(
|
||||||
|
Loading…
Reference in New Issue
Block a user