add some logging to help follow proxy protocol translation logic
MODIFY
lib/jsonwp-proxy/proxy.js
lib/jsonwp-proxy/proxy.js
@@ -159,6 +159,7 @@ class JWProxy {
const resBodyObj = util.safeJsonParse(resBody);
if (!this.downstreamProtocol) {
this.downstreamProtocol = this.getProtocolFromResBody(resBodyObj);
+ log.debug(`Determined that the downstream protocol for proxy is ${this.downstreamProtocol}`);
}
if (res.statusCode < 400 && this.downstreamProtocol === MJSONWP && parseInt(resBodyObj.status, 10) !== 0) {
// Some servers, like chromedriver may return response code 200 for non-zero JSONWP statuses

add some logging to help follow proxy protocol translation logic