Skip to content

Commit

Permalink
SNOW-1631790-Transport-Layer - missing logs added for browser client
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fpawlowski committed Nov 19, 2024
1 parent 7725d96 commit c79c2fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/http/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -13,6 +14,7 @@ const Base = require('./base');
* @constructor
*/
function BrowserHttpClient(connectionConfig) {
Logger.getInstance().trace('Initializing BrowserHttpClient with connection config');
Base.apply(this, [connectionConfig]);
}

Expand Down

0 comments on commit c79c2fc

Please sign in to comment.