Skip to content

Commit c619772

Browse files
committedMay 17, 2023
debug
1 parent ef89b6a commit c619772

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/install.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,18 @@ export async function download (geckodriverVersion: string = process.env.GECKODR
4747
throw new Error(`Couldn't find version property in Cargo.toml file: ${toml}`)
4848
}
4949
geckodriverVersion = version.split(' = ').pop().slice(1, -1)
50-
log.info(`Detected Geckodriver v${geckodriverVersion} to be latest`)
50+
console.log(`Detected Geckodriver v${geckodriverVersion} to be latest`)
5151
}
5252

5353
const url = getDownloadUrl(geckodriverVersion)
54-
log.info(`Downloading Geckodriver from ${url}`)
54+
console.log(`Downloading Geckodriver from ${url}`)
5555
const res = await fetch(url, fetchOpts)
5656

5757
if (!res.body) {
5858
throw new Error(`Failed to download binary (statusCode ${res.status})`)
5959
}
6060

6161
await fsp.mkdir(targetDir, { recursive: true })
62-
6362
await (url.endsWith('.zip')
6463
? downloadZip(res.body, targetDir)
6564
: streamPipeline(res.body, zlib.createGunzip(), tar.extract(targetDir)))

0 commit comments

Comments
 (0)
Please sign in to comment.