Skip to content

Commit

Permalink
Update logging (microsoft#1389)
Browse files Browse the repository at this point in the history
* Update logging output

* Fix logging

* Update appcenter-file-upload-client-node/src/ac-fus-util.ts

Co-authored-by: Dima <[email protected]>

* Update ac-fus-util.ts

Co-authored-by: Dima <[email protected]>
  • Loading branch information
Dmitrii Chichuk and DmitriyKirakosyan authored Apr 22, 2021
1 parent fda0c16 commit 6c97009
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions appcenter-file-upload-client-node/src/ac-fus-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ export function resolveProxySettings(options: any = {}) {
...options
};
const proxyServer = process.env.http_proxy ||
process.env.HTTP_PROXY ||
process.env.https_proxy ||
process.env.HTTPS_PROXY ||
null;
process.env.HTTP_PROXY ||
process.env.https_proxy ||
process.env.HTTPS_PROXY ||
null;
if (proxyServer && !proxyServer.startsWith("http://") && !proxyServer.startsWith("https://")) {
console.warn("Proxy address in environment variable does not start with either 'http://' or 'https://'. CLI might not work correctly.");
}
if (!options.agent && proxyServer) {
instanceOptions.agent = ProxyAgent(proxyServer);
}
Expand Down

0 comments on commit 6c97009

Please sign in to comment.