Skip to content

Allow logging responses - #13

Open
reissbaker wants to merge 1 commit into
mainfrom
allow-saving-responses
Open

Allow logging responses#13
reissbaker wants to merge 1 commit into
mainfrom
allow-saving-responses

Conversation

@reissbaker

Copy link
Copy Markdown
Contributor

Useful for debugging

@reissbaker
reissbaker requested a review from a team as a code owner May 21, 2026 23:44

@sdjidjev sdjidjev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just had a question for my own knowledge

Comment thread source/index.ts
if(options.pretty) console.log(JSON.stringify(JSON.parse(buffer.join()), null, 2));
else process.stdout.write("\n");
console.log(`[${timestamp}] ✅ Request complete`);
stderrLog("✅ Request complete");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i noticed sometimes we do console.error(, stderrLog(, and console.log( in this file. what are the different situations in which we would use one over the other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants