Commit 48840b94 authored by Aaron Harder's avatar Aaron Harder

Improve bl:edit proxy logging

parent dfd6bb60
......@@ -2,7 +2,7 @@
var _url=require("url");
var httpSecure=require("https");
var httpInsecure=require("http");
var log = global.bl.logger.get("blacklight.edit");
var log = global.bl.logger.get("blacklight.edit:proxy");
var _=require("lodash");
var authorUrls={};
......@@ -87,7 +87,7 @@ module.exports.process = function(data, $, cb){
}
// console.log("PROXY_REQUEST:", options);
log.info("Proxying: ",proxyUri);
log.info("Proxying: ", proxyUri);
// console.log("PROXY TO:", options);
......@@ -106,6 +106,10 @@ module.exports.process = function(data, $, cb){
end: true
});
proxy.on("error", (err)=>{
log.error("Could not proxy to:", proxyUri, err);
})
cb(null, false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment