What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Set the pyppeteer logger to an appropriate threshold before creating or attaching to a browser. For near-silent output, use logging.CRITICAL; use ERROR or WARNING when you still need operational diagnostics. You can also pass the same level as logLevel to launch() or connect(). Chromium’s own stdout and stderr are separate and are controlled by dumpio.
The quickest working fix
Configure Pyppeteer’s named logger before the first browser call:
import asyncio
import logging
from pyppeteer import launch
logging.getLogger('pyppeteer').setLevel(logging.CRITICAL)
async def main():
browser = await launch()
try:
page = await browser.newPage()
await page.goto('https://example.com')
print(await page.title())
finally:
await browser.close()
asyncio.run(main())
This changes only records emitted through the pyppeteer logger. Your application’s logger and unrelated libraries can continue using their existing levels. Put the statement before launch() or connect(); setting it after startup can leave early messages visible.
Choose how much output to retain
A logging level is a threshold: a record at that level or a more severe level is retained, while lower-severity records are filtered. The right setting depends on whether you are troubleshooting or running unattended jobs.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
| Level | What remains | Use it when |
|---|---|---|
logging.CRITICAL |
Only critical Pyppeteer records | You want the quietest normal operation and accept losing warnings and ordinary errors from this logger |
logging.ERROR |
Errors and critical records | You need failures reported but not warnings, informational messages, or debug details |
logging.WARNING |
Warnings, errors, and critical records | You want a safer production default with useful diagnostics |
logging.DEBUG |
Verbose diagnostic records | You are investigating browser startup, navigation, or protocol problems |
Pyppeteer also accepts an integer or string logLevel option on both browser creation and browser attachment. Python constants such as logging.ERROR make the intended threshold unambiguous.
Use the per-call logLevel option
Suppress output for a new browser
import asyncio
import logging
from pyppeteer import launch
async def main():
browser = await launch(logLevel=logging.ERROR)
await browser.close()
asyncio.run(main())
The launcher applies this option to the pyppeteer logger for that call. It is convenient when a small script should configure Pyppeteer without changing a larger logging setup.
Suppress output while connecting to an existing browser
import asyncio
import logging
from pyppeteer import connect
async def main():
browser = await connect(
browserWSEndpoint='ws://127.0.0.1:9222/devtools/browser/your-id',
logLevel=logging.CRITICAL,
)
await browser.close()
asyncio.run(main())
Use the same option with connect(). Replace the endpoint with the WebSocket endpoint exposed by the browser you started separately.
Package-only configuration versus global logging
Prefer the named logger
logging.getLogger('pyppeteer').setLevel(...) scopes the change to Pyppeteer. This is usually the best choice in a service that also logs requests, jobs, database activity, or other automation libraries. A module-level setting is applied once and covers later launch() and connect() calls in that Python process.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesDo not use global disabling as the first solution
logging.disable(...) and changing the root logger affect unrelated packages and your own records. They can hide the evidence you need to diagnose a failed task. If a framework installs its logging configuration after your setup code, apply the Pyppeteer logger level after that configuration step, or use the per-call logLevel argument.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Why NOTSET does not mean “off”
logging.NOTSET tells a logger to inherit its effective level from an ancestor. Depending on the root logger and handlers, messages may still appear. It is useful when you intentionally want inherited policy, but it is not a reliable silence setting. Choose a concrete threshold such as CRITICAL when suppression is the goal.
A complete configuration pattern for applications
Configure your application’s handlers normally, then set only Pyppeteer’s threshold. The example keeps application errors visible while reducing browser-library noise:
import asyncio
import logging
from pyppeteer import launch
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s %(name)s %(levelname)s %(message)s',
)
logging.getLogger('pyppeteer').setLevel(logging.WARNING)
async def capture_title(url: str) -> str:
browser = await launch(logLevel=logging.WARNING)
try:
page = await browser.newPage()
await page.goto(url, waitUntil='networkidle2')
return await page.title()
finally:
await browser.close()
async def main():
title = await capture_title('https://example.com')
logging.getLogger(__name__).info('Page title: %s', title)
asyncio.run(main())
There are two equivalent controls in this example. The named-logger assignment establishes the process policy; the logLevel argument makes the browser call self-documenting. In a codebase with one central logging policy, keeping just the named-logger assignment avoids unnecessary duplication.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Why messages can remain after changing the logger
dumpio=True is a different output path
The dumpio launch option pipes the Chromium process’s stdout and stderr into the parent process. Those bytes are not Pyppeteer log records, so changing the pyppeteer logger cannot remove them. If you do not need browser-process streams, omit dumpio=True or set dumpio=False:
browser = await launch(
logLevel=logging.ERROR,
dumpio=False,
)
Keep dumpio enabled temporarily when diagnosing a Chromium crash or startup failure, then disable it for normal runs.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Another logger may be producing the line
Look at the prefix or formatter in the output. A record whose logger name is not pyppeteer, or text written directly to stdout and stderr, is outside this setting. Configure that specific logger or stream only after identifying its source rather than lowering the root level for the whole process.
Configuration may run too late
Place logger setup before importing code that launches a browser, and certainly before the first launch() or connect(). If a framework’s startup hook calls logging.config.dictConfig() later, put the Pyppeteer override in a hook that runs after the framework’s configuration.
Debug first, then reduce the level
When a page fails to load or Chromium exits unexpectedly, temporarily use logging.DEBUG on the relevant call:
browser = await launch(logLevel=logging.DEBUG, dumpio=True)
Capture the diagnostic run, identify the failure, and return to WARNING, ERROR, or CRITICAL for routine operation. Suppressing diagnostics permanently can make intermittent browser failures much harder to investigate.
Troubleshooting checklist
“I still see Pyppeteer debug messages.”
- Confirm the logger name is exactly
pyppeteer, in lowercase. - Set the level before the browser is created or attached.
- Check that a later application logging configuration has not reset the level.
- For a one-off script, pass
logLevel=logging.CRITICALdirectly tolaunch()orconnect().
“Chromium still prints lines after I set CRITICAL.”
Inspect the launch arguments for dumpio=True. Disable that option if process stdout and stderr are not required. The logger threshold affects Pyppeteer records, not those streams.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
“My application logs disappeared too.”
Undo any use of logging.disable() or a root-logger change and restore your application handler level. Then set only logging.getLogger('pyppeteer').setLevel(...). This keeps the scope package-specific.
Free tools Windows power users keep installed
One-click scans. No signup required.
“I need errors but not warnings.”
Use logging.ERROR. If warnings are useful for detecting degraded navigation or browser behavior, choose logging.WARNING instead. CRITICAL is too restrictive when ordinary errors must remain visible.
“I need to silence an attached browser.”
Pass logLevel to connect(), not only to the process that originally started Chromium. The attaching Python process has its own Pyppeteer logger configuration.
Verify the effective setting
Python can show the level that the logger is actually using:
import logging
logger = logging.getLogger('pyppeteer')
logger.setLevel(logging.ERROR)
print(logger.level) # 40, the numeric value for ERROR
print(logger.getEffectiveLevel())
If the effective level is lower than expected, inspect parent logger configuration and any later framework setup. A logger level does not remove handlers; it filters records before handlers process them.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Maintenance context for new projects
The current Pyppeteer repository describes the package as an unofficial Python port of Puppeteer, says it is unmaintained, and points new projects toward Playwright for Python. The logger and logLevel techniques above remain useful for existing Pyppeteer applications, but a new automation project should evaluate the maintenance status and migration cost before committing to this package.
Or skip the browser setup
If your actual requirement is to obtain a clean screenshot rather than control a local Pyppeteer browser, ScreenshotNeo provides a website screenshot API. A single request can return PNG, JPEG, WebP, or PDF output; its documentation is at https://screenshotneo.com/docs/.
curl -G 'https://api.screenshotneo.com/v1/shot'
-d access_key=YOUR_API_KEY
--data-urlencode url=https://stripe.com
-o shot.webp
Equivalent Python:
import requests
r = requests.get(
'https://api.screenshotneo.com/v1/shot',
params={'access_key': 'YOUR_API_KEY', 'url': 'https://stripe.com'},
timeout=90,
)
r.raise_for_status()
open('shot.webp', 'wb').write(r.content)
Equivalent Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
- Before capture, it accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off.
- Only clean shots are billed. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status.
- An MCP server exposes
take_screenshot,get_page_info, andcapture_pdfto Claude, Cursor, and other MCP clients. - The Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 screenshots; yearly billing provides two months free.
Create a free ScreenshotNeo account to try the 1,000 monthly screenshots without a card.
Frequently Asked Questions
Does changing the Pyppeteer logger hide Python exceptions?
No. Logging filters log records; it does not catch exceptions or change whether an exception is raised. Handle browser and navigation exceptions separately in your application.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteCan different parts of one process use different Pyppeteer levels?
The named logger is process-wide, so changing its level affects subsequent Pyppeteer records for that process. Use separate processes when genuinely independent logging policies are required.
Which level should I use in a scheduled production job?
Start with WARNING if you need early signs of degraded behavior. Move to ERROR when warnings are too noisy, and use CRITICAL only when the job’s monitoring system supplies other failure visibility.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

