Skip to content

Conversation

@shbradki
Copy link

This PR adds a codemod using the Codegen SDK that refactors all print() statements into appropriate logging.*() calls:

  • logging.exception() for bare exceptions
  • logging.error() for error-like messages (e.g. with keywords like "fail", "error", "status code")
  • logging.info() for everything else

Also automatically adds import logging to any file that didn’t already have it.

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.

1 participant