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: STRF-9741 Verbose error logging in Stencil CLI #914

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

jairo-bc
Copy link
Contributor

What?

Introduced verbose network requests logging.

Tickets / Documentation

Screenshots (if appropriate)

Screenshot 2022-04-19 at 13 29 09

Screenshot 2022-04-19 at 13 29 22

Screenshot 2022-04-19 at 13 29 46

Screenshot 2022-04-19 at 13 30 05

cc @bigcommerce/storefront-team

@jairo-bc jairo-bc force-pushed the STRF-9741 branch 2 times, most recently from 38ff53b to 908ebe2 Compare April 19, 2022 17:29
lib/cliCommon.js Outdated
console.log(`URL: `.yellow + config.url);
console.log(`Method: `.yellow + config.method.toUpperCase());
console.log(`Headers:`.yellow);
printObject(config.headers);
Copy link
Contributor

Choose a reason for hiding this comment

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

let's not print headers, as they may contain auth tokens

CHANGELOG.md Outdated
@@ -1,5 +1,7 @@
### Draft

- feat: STRF-9741 Verbose error logging in Stencil CLI by default ([x](https:/bigcommerce/stencil-cli/pull/x))
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a line on how to disable it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@zvuki
Copy link
Contributor

zvuki commented Apr 20, 2022

@jairo-bc Do you have an example of the output when an error happens?

@jairo-bc
Copy link
Contributor Author

Screenshot 2022-04-20 at 20 58 06

Screenshot 2022-04-20 at 21 01 36

@jairo-bc jairo-bc force-pushed the STRF-9741 branch 2 times, most recently from 53272f6 to 0794605 Compare April 21, 2022 17:03
@zvuki zvuki merged commit 7cd8074 into bigcommerce:master Apr 22, 2022
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.

3 participants