Skip to content

Commit

Permalink
add important logging for DebugError
Browse files Browse the repository at this point in the history
  • Loading branch information
garylin2099 committed Aug 1, 2023
1 parent 39a0a83 commit 144af68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metagpt/actions/debug_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
@File : debug_error.py
"""
import re

from metagpt.logs import logger
from metagpt.actions.action import Action
from metagpt.utils.common import CodeParser

Expand Down Expand Up @@ -38,6 +40,8 @@ async def run(self, context):

file_name = re.search("## File To Rewrite:\s*(.+\\.py)", context).group(1)

logger.info(f"Debug and rewrite {file_name}")

prompt = PROMPT_TEMPLATE.format(context=context)

rsp = await self._aask(prompt)
Expand Down

0 comments on commit 144af68

Please sign in to comment.