Skip to content

Commit a6782fd

Browse files
committed
Refactor debug logging in git_diff_context method
The debug logging in the git_diff_context method of the Coder class has been refactored. The logger now uses the opt(raw=True) option when logging the diff for a specific commit. This change enhances the readability of the logged output.
1 parent 40bb518 commit a6782fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aicodebot/coder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def git_diff_context(commit=None):
118118
# If a commit is provided, just get the diff for that commit
119119
logger.debug(f"Getting diff for commit {commit}")
120120
show = exec_and_get_output(["git", "show", commit])
121-
logger.debug(f"Diff for commit {commit}: {show}")
121+
logger.opt(raw=True).debug(f"Diff for commit {commit}: {show}")
122122
return show
123123
else:
124124
# Otherwise, get the diff for the staged files, or if there are none, the diff for the unstaged files

0 commit comments

Comments
 (0)