sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.43k stars 425 forks source link

Sweep: Add traceback to error logs in entities.py #1816

Open sweep-nightly[bot] opened 1 year ago

sweep-nightly[bot] commented 1 year ago

In the file entities.py, there are instances where the logger is used to log warnings and print statements, but traceback is not used. This is against the user's rules.

The specific instances are:

  1. In the RegexMatchableBaseModel class, the logger.warning method is used without traceback. (Reference: logger.warning(f"Did not match {string} with pattern {cls._regex}"))
  2. In the FileCreation class, the logger.print method is used without traceback. (Reference: logger.print(f"Did not match {string} with pattern {cls._regex}"))

Please add traceback to these logger methods to provide more detailed error information.

sweep-nightly[bot] commented 1 year ago
Sweeping

0%

Actions (click)


❌ Unable to Complete PR

It looks like an issue has occurred around fetching the files. Perhaps the repo has not been initialized. If this error persists contact team@sweep.dev.

@sweep-nightly[bot], editing this issue description to include more details will automatically make me relaunch.

For bonus GPT-4 tickets, please report this bug on Discord.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.