diff --git a/package.json b/package.json index b949502..4d9bda8 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,6 @@ "name": "HeadlessChromium.Puppeteer.Lambda.Dotnet", "version": "0.0.1-dev", "dependencies": { - "@sparticuz/chromium": "123.0.0" + "@sparticuz/chromium": "123.0.1" } } diff --git a/sample/SampleLambda-dotnet8/HelloWorldHandler.cs b/sample/SampleLambda-dotnet8/HelloWorldHandler.cs index d838175..bfb162b 100644 --- a/sample/SampleLambda-dotnet8/HelloWorldHandler.cs +++ b/sample/SampleLambda-dotnet8/HelloWorldHandler.cs @@ -12,7 +12,12 @@ public async Task Handle(ILambdaContext context) var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole()); var browserLauncher = new HeadlessChromiumPuppeteerLauncher(loggerFactory); - await using (var browser = await browserLauncher.LaunchAsync()) + var launchArgs = HeadlessChromiumPuppeteerLauncher.DefaultChromeArgs + .Append("--enable-logging") + .Append("--v=1") + .ToArray(); + + await using (var browser = await browserLauncher.LaunchAsync(launchArgs)) await using (var page = await browser.NewPageAsync()) { await page.GoToAsync("https://www.google.com"); diff --git a/sample/SampleLambda-dotnet8/SampleLambda.csproj b/sample/SampleLambda-dotnet8/SampleLambda.csproj index 7d4e8cd..1153a75 100644 --- a/sample/SampleLambda-dotnet8/SampleLambda.csproj +++ b/sample/SampleLambda-dotnet8/SampleLambda.csproj @@ -21,7 +21,7 @@ - +