DEBUG_NETWORK=1 to log network requests and responses instead of DEBUG && RECORD

This commit is contained in:
Ralf Vogler 2023-12-21 16:16:48 +01:00
parent 19e9bb9cfc
commit 30957d63d0
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ dotenv.config({ path: 'data/config.env' }); // loads env vars from file - will n
// Options - also see table in README.md
export const cfg = {
debug: process.env.DEBUG == '1' || process.env.PWDEBUG == '1', // runs non-headless and opens https://playwright.dev/docs/inspector
debug_network: process.env.DEBUG_NETWORK == '1', // log network requests and responses
record: process.env.RECORD == '1', // `recordHar` (network) + `recordVideo`
time: process.env.TIME == '1', // log duration of each step
dryrun: process.env.DRYRUN == '1', // don't claim anything