mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
remove logging
This commit is contained in:
@@ -34,7 +34,6 @@ class HttpRequestor extends BaseRequestor {
|
||||
this._search = u.search;
|
||||
this._usePools = process.env.HTTP_POOL && parseInt(process.env.HTTP_POOL);
|
||||
|
||||
logger.debug({u, baseUrl: this.baseUrl}, 'HttpRequestor:constructor');
|
||||
if (this._usePools) {
|
||||
if (pools.has(this._baseUrl)) {
|
||||
this.client = pools.get(this._baseUrl);
|
||||
@@ -85,8 +84,6 @@ class HttpRequestor extends BaseRequestor {
|
||||
|
||||
assert.ok(url, 'HttpRequestor:request url was not provided');
|
||||
assert.ok, (['GET', 'POST'].includes(method), `HttpRequestor:request method must be 'GET' or 'POST' not ${method}`);
|
||||
const {url: urlInfo = hook, method: methodInfo = 'POST'} = hook; // mask user/pass
|
||||
this.logger.debug({url: urlInfo, method: methodInfo, payload}, `HttpRequestor:request ${method} ${url}`);
|
||||
const startAt = process.hrtime();
|
||||
|
||||
let newClient;
|
||||
@@ -95,7 +92,6 @@ class HttpRequestor extends BaseRequestor {
|
||||
if (this._isRelativeUrl(url)) {
|
||||
client = this.client;
|
||||
path = url;
|
||||
this.logger.debug({path}, 'HttpRequestor:request - relative url');
|
||||
}
|
||||
else {
|
||||
const u = parseUrl(url);
|
||||
@@ -103,13 +99,11 @@ class HttpRequestor extends BaseRequestor {
|
||||
client = this.client;
|
||||
path = u.pathname;
|
||||
query = u.query;
|
||||
this.logger.debug({u, path}, 'HttpRequestor:request - abs url but reuse client');
|
||||
}
|
||||
else {
|
||||
client = newClient = new Client(`${u.protocol}://${u.resource}`);
|
||||
path = u.pathname;
|
||||
query = u.query;
|
||||
this.logger.debug({u, path}, 'HttpRequestor:request - abs url new client');
|
||||
}
|
||||
}
|
||||
const sigHeader = this._generateSigHeader(payload, this.secret);
|
||||
|
||||
Reference in New Issue
Block a user