Skip to content

Commit 3532405

Browse files
Merge pull request pyppeteer#313 from zachmullen/patch-1
Consider using `info` level for download log messages
2 parents 5daef2a + bfa56ea commit 3532405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyppeteer/chromium_downloader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_url() -> str:
6767

6868
def download_zip(url: str) -> BytesIO:
6969
"""Download data from url."""
70-
logger.warning('Starting Chromium download. ' 'Download may take a few minutes.')
70+
logger.info('Starting Chromium download. Download may take a few minutes.')
7171

7272
with urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=certifi.where()) as http:
7373
# Get data from url.
@@ -92,7 +92,7 @@ def download_zip(url: str) -> BytesIO:
9292
process_bar.update(len(chunk))
9393
process_bar.close()
9494

95-
logger.warning('Chromium download done.')
95+
logger.info('Chromium download done.')
9696
return _data
9797

9898

@@ -125,7 +125,7 @@ def extract_zip(data: BytesIO, path: Path) -> None:
125125
if not exec_path.exists():
126126
raise IOError('Failed to extract chromium.')
127127
exec_path.chmod(exec_path.stat().st_mode | stat.S_IXOTH | stat.S_IXGRP | stat.S_IXUSR)
128-
logger.warning(f'chromium extracted to: {path}')
128+
logger.info(f'chromium extracted to: {path}')
129129

130130

131131
def download_chromium() -> None:

0 commit comments

Comments
 (0)