diff --git a/src/classes/Agent.js b/src/classes/Agent.js index 99bc290f..585598bd 100644 --- a/src/classes/Agent.js +++ b/src/classes/Agent.js @@ -40,7 +40,7 @@ class Agent { if (this.mustUrlUseProxy(requestUrl)) { const proxy = this.getUrlProxy(requestUrl); - log.trace('proxying request to %s', requestUrl); + log.trace('proxying request to %s use %s proxy', requestUrl, 'http://' + proxy.hostname + ':' + proxy.port); request.shouldKeepAlive = false; diff --git a/src/routines/bootstrap.js b/src/routines/bootstrap.js index 85b09fa4..f9913bc0 100644 --- a/src/routines/bootstrap.js +++ b/src/routines/bootstrap.js @@ -36,6 +36,10 @@ export default () => { // eslint-disable-next-line no-process-env global.GLOBAL_AGENT.NO_PROXY = process.env.GLOBAL_AGENT_NO_PROXY || null; + log.info({ + configuration: global.GLOBAL_AGENT + }, 'global agent has been initialized'); + const mustUrlUseProxy = (url) => { if (!global.GLOBAL_AGENT.HTTP_PROXY) { return false;