From c79c2fcfd410ee6e09ddf2d0df15e61fc26b5f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Paw=C5=82owski?= Date: Tue, 19 Nov 2024 10:07:23 +0100 Subject: [PATCH] SNOW-1631790-Transport-Layer - missing logs added for browser client --- lib/http/base.js | 2 +- lib/http/browser.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/http/base.js b/lib/http/base.js index 81589ffee..65cf10606 100644 --- a/lib/http/base.js +++ b/lib/http/base.js @@ -294,7 +294,7 @@ function prepareRequestOptions(options) { requestOptions.httpAgent = agent; } - Logger.getInstance().trace('Request%s - options - timeout: %s, retryDelay: %s, responseType: %s', requestUtil.describeRequestFromOptions(options), requestOptions.timeout, requestOptions.retryDelay, requestOptions.responseType); + Logger.getInstance().debug('Request%s - options - timeout: %s, retryDelay: %s, responseType: %s', requestUtil.describeRequestFromOptions(options), requestOptions.timeout, requestOptions.retryDelay, requestOptions.responseType); return requestOptions; } diff --git a/lib/http/browser.js b/lib/http/browser.js index a13f1828f..b2cad5b00 100644 --- a/lib/http/browser.js +++ b/lib/http/browser.js @@ -5,6 +5,7 @@ const Util = require('../util'); const request = require('browser-request'); const Base = require('./base'); +const Logger = require('../logger'); /** * Creates a client that can be used to make requests in the browser. @@ -13,6 +14,7 @@ const Base = require('./base'); * @constructor */ function BrowserHttpClient(connectionConfig) { + Logger.getInstance().trace('Initializing BrowserHttpClient with connection config'); Base.apply(this, [connectionConfig]); }