Skip to content

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Nov 26, 2021

Remove credentials from stackTrace and print stackFrame when a retry happen.
There is no true logger for now so it's just console.log

@millotp millotp self-assigned this Nov 26, 2021
DevinCodes
DevinCodes previously approved these changes Nov 29, 2021
Copy link
Contributor

@DevinCodes DevinCodes left a comment

Choose a reason for hiding this comment

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

🚀

* the end user to debug / store stack frames even
* when a retry error does not happen.
*/
console.log('Retryable failure', stackFrameWithoutCredentials(stackFrame));
Copy link
Contributor

Choose a reason for hiding this comment

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

For now this is probably fine, but we might want to extract this into a Logger class that the user can swap for something custom (e.g. writing to a file or server instead of to the console).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea, I created a ticket

shortcuts
shortcuts previously approved these changes Nov 29, 2021
Co-authored-by: Clément Vannicatte <20689156+shortcuts@users.noreply.github.com>
@millotp millotp dismissed stale reviews from shortcuts and DevinCodes via cc482be November 29, 2021 13:01
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Nice!

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