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: Remove commented out code and use traceback for error logs in logn/logn.py #1556

Open sweep-nightly[bot] opened 1 year ago

sweep-nightly[bot] commented 1 year ago

In the file logn/logn.py, there are several lines of code that are commented out. These should be removed or uncommented if they are necessary for the functionality of the code.

Additionally, the file does not appear to use traceback for error logs. This should be implemented to provide more detailed error information.

Here are the specific areas that need to be addressed:

  1. Remove or uncomment the following lines of code:

    • "# Todo: keep track of state, and allow metadata updates"
    • "# Todo: Write parent task in here"
    • "# Todo: add call to parent task"
    • "# print(self.name, f"Logging before calling {func.name}")"
    • "# print(self.name, f"Logging after calling {func.name}")
  2. Implement traceback for error logs. This can be done by importing the traceback module and using traceback.print_exc() in the exception handling blocks.

sweep-nightly[bot] commented 1 year ago

0%


❌ 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], please edit the issue description to include more details and I will automatically 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.