Install: log proxy use, if any, to aid with debugging

This commit is contained in:
Lovell Fuller
2022-12-06 19:35:47 +00:00
parent 9d760f3958
commit def99a294a
3 changed files with 14 additions and 7 deletions

View File

@@ -167,7 +167,7 @@ try {
} else {
const url = distBaseUrl + tarFilename;
libvips.log(`Downloading ${url}`);
simpleGet({ url: url, agent: agent() }, function (err, response) {
simpleGet({ url: url, agent: agent(libvips.log) }, function (err, response) {
if (err) {
fail(err);
} else if (response.statusCode === 404) {