dbginfo.sh: save dbginfo.sh version to dbginfo.log

we do miss a simple way to see the dbginfo.sh version used by the
customer for the debug generation. saving the version now to dbginfo.log

Reported-by: Mike Storzer <MSTORZER@de.ibm.com>
Reviewed-by: Mario Held <mario.held@de.ibm.com>
Signed-off-by: Joern Siglen <siglen@de.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Siglen
2022-08-22 16:28:05 +02:00
committed by Jan Höppner
parent 0b5aac3d79
commit ec3e5b4a75
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ Release history for s390-tools (MIT version)
Changes of existing tools:
Bug Fixes:
- dbginfo.sh: save dbginfo.sh version to dbginfo.log
* __v2.23.0 (2022-08-18)__
+3
View File
@@ -1347,6 +1347,9 @@ print_version
# saving stdout/stderr and redirecting stdout/stderr into log file
exec 8>&1 9>&2 >"${LOGFILE}" 2>&1
# run print_version again to be logged in dbginfo.log
print_version
# trap on SIGHUP=1 SIGINT=2 SIGTERM=15
trap emergency_exit SIGHUP SIGINT SIGTERM