Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Move request logging over to response instead
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Mar 11, 2022
1 parent 060209f commit 56bc819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/end-to-end-tests/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ElementSession {
this.consoleLog = new LogBuffer(page, "console",
async (msg: puppeteer.ConsoleMessage) => `${await serializeLog(msg)}\n`);
this.networkLog = new LogBuffer(page,
"requestfinished", async (req: puppeteer.HTTPRequest) => {
"response", async (req: puppeteer.HTTPRequest) => {
const type = req.resourceType();
const response = await req.response();
return `${type} ${response.status()} ${req.method()} ${req.url()} \n`;
Expand Down

0 comments on commit 56bc819

Please sign in to comment.