feat: identify the running code by source hash

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