Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit a3fc19c

Browse files
authored
chore: Update file content log for slightly easier debugging (#1171)
1 parent 62627f5 commit a3fc19c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

core/commands/commit/interactors/get_file_content.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ async def get_file_from_service(self, commit: Commit, path: str) -> str | None:
2222
return content.get("content")
2323
return content.get("content").decode("utf-8")
2424
# TODO raise this to the API so we can handle it.
25-
except Exception:
26-
log.info(
25+
except Exception as e:
26+
log.warning(
2727
"GetFileContentInteractor - exception raised",
28-
extra=dict(commitid=commit.commitid),
28+
extra=dict(
29+
commitid=commit.commitid,
30+
path=path,
31+
error_name=type(e).__name__,
32+
error_message=str(e),
33+
),
2934
)
3035
return None
3136

0 commit comments

Comments
 (0)