Skip to content

Commit

Permalink
Merge b07b3a4 into 952c1af
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesponti committed Apr 16, 2018
2 parents 952c1af + b07b3a4 commit 3abe761
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/index.js
Expand Up @@ -19,7 +19,11 @@ function HttpProxyMiddleware (context, opts) {

// create proxy
var proxy = httpProxy.createProxyServer({})
logger.info('[HPM] Proxy created:', config.context, ' -> ', proxyOptions.target)

// Prevent logging during tests
if (process.env.NODE_ENV !== 'test') {
logger.info('[HPM] Proxy created:', config.context, ' -> ', proxyOptions.target)
}

var pathRewriter = PathRewriter.create(proxyOptions.pathRewrite) // returns undefined when "pathRewrite" is not provided

Expand Down

0 comments on commit 3abe761

Please sign in to comment.