[elbe-devel] [PATCH] elbepack: elbeproject: log used elbe version

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Jan 14 17:27:53 CET 2025


Knowing the used version of ELBE is useful when debugging issues.
While version is already part of elbe-report.txt, that is not shown to
the user and in case of failed builds needs to be downloaded manually.
Print the used version to the default output where it is easily usable.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/elbeproject.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 084fec494e93e2bd85d56f87e7cc106a0adf8bc7..c3c9b2149b8ce8cd7dd37494736b4b7132c89df8 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -38,6 +38,7 @@ from elbepack.rfs import BuildEnv
 from elbepack.rpcaptcache import get_rpcaptcache
 from elbepack.shellhelper import chroot, do
 from elbepack.templates import write_pack_template
+from elbepack.version import elbe_version
 
 
 _xz_env = {
@@ -965,8 +966,11 @@ class ElbeProject:
     def write_log_header(self):
 
         logging.info('ELBE Report for Project %s\n'
-                     'Report timestamp: %s', self.name,
-                     datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))
+                     'Report timestamp: %s\n'
+                     'elbe: %s',
+                     self.name,
+                     datetime.datetime.now().strftime('%Y%m%d-%H%M%S'),
+                     str(elbe_version))
 
     def copy_initvmnode(self):
         source_path = '/var/cache/elbe/source.xml'

---
base-commit: 53f7126e9dbbf2934376cb08eb71fba54dacbe23
change-id: 20250114-log-elbe-version-5fdae68e2024

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list