feat: show git commit hash alongside the version

This commit is contained in:
imSp4rky
2026-07-30 13:44:07 -06:00
parent 42d7fd8303
commit 72b8ab7027
7 changed files with 97 additions and 6 deletions
+2 -1
View File
@@ -787,7 +787,7 @@ class DebugLogger:
"""Log the start of a new session with environment information."""
import platform
from unshackle.core import __version__
from unshackle.core import __commit__, __version__
self.log(
level="INFO",
@@ -795,6 +795,7 @@ class DebugLogger:
message="Debug logging session started",
context={
"unshackle_version": __version__,
"unshackle_commit": __commit__ or None,
"python_version": sys.version,
"platform": platform.platform(),
"platform_system": platform.system(),