Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add http logging for Node JS #618

Merged
merged 27 commits into from
Oct 16, 2020
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3e1945e
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
5cb3410
Add helper function to match CLI output
JenniferMah Oct 13, 2020
4025e46
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
5fb1088
Add helper function to match CLI output
JenniferMah Oct 13, 2020
4d0d88d
Merge branch 'DI947' of github.com:twilio/twilio-node into DI947
JenniferMah Oct 14, 2020
8c67b21
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
a6f3d07
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
e515020
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
f12dbe6
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
69bca0c
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
8372078
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
0c9252f
Merge branch 'DI947' of github.com:twilio/twilio-node into DI947
JenniferMah Oct 15, 2020
a41ec86
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
a601238
Add helper function to match CLI output
JenniferMah Oct 13, 2020
6fe65cc
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
fd835e0
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
c224fed
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
5b3e16e
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
5a1ae55
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
317fc7a
feat: add http logging for Node JS
JenniferMah Oct 13, 2020
e1fc887
Use logLevel to trigger debug logging and log the request and response
JenniferMah Oct 14, 2020
937ee70
Merge branch 'DI947' of github.com:twilio/twilio-node into DI947
JenniferMah Oct 15, 2020
8d3b0f2
Merge branch 'main' into DI947
JenniferMah Oct 15, 2020
b497a50
Merge branch 'DI947' of github.com:twilio/twilio-node into DI947
JenniferMah Oct 15, 2020
6fb28df
Move request log to before request is being made and fix response.dat…
JenniferMah Oct 15, 2020
7583c9d
allow logLevel to be a request-level parameter
JenniferMah Oct 16, 2020
276c4be
opts.logLevel takes precedence
JenniferMah Oct 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rest/Twilio.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Twilio.prototype.request = function request(opts) {
data: opts.data,
timeout: opts.timeout,
allowRedirects: opts.allowRedirects,
logLevel: this.logLevel
logLevel: this.logLevel || opts.logLevel
JenniferMah marked this conversation as resolved.
Show resolved Hide resolved
});
};

Expand Down