mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-18 12:59:31 +00:00
Log proxy connection errors rather than killing server.
Don't have accurate repro for when they occur.
This commit is contained in:
@@ -37,6 +37,10 @@ var proxy = httpProxy.createProxy({
|
||||
target: 'http://' + BACKEND_HOST
|
||||
});
|
||||
|
||||
proxy.on('error', function(err) {
|
||||
console.error('Proxy error', err);
|
||||
});
|
||||
|
||||
app.all('/api*', proxy.web.bind(proxy));
|
||||
|
||||
// Serve index page
|
||||
|
||||
Reference in New Issue
Block a user