diff --git a/self-diagnostics/Makefile b/self-diagnostics/Makefile index 186e19004..0c44c8d67 100644 --- a/self-diagnostics/Makefile +++ b/self-diagnostics/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=self-diagnostics -PKG_VERSION:=1.0.10 +PKG_VERSION:=1.0.11 PKG_RELEASE:=1 PKG_LICENSE:=GPL-2.0-only diff --git a/self-diagnostics/files/etc/config/self-diagnostics b/self-diagnostics/files/etc/config/self-diagnostics index 664c5596a..3e0427e73 100644 --- a/self-diagnostics/files/etc/config/self-diagnostics +++ b/self-diagnostics/files/etc/config/self-diagnostics @@ -2,5 +2,5 @@ config globals 'globals' option extended_spec_dir '/etc/self-diagnostics/spec' option exec_timeout '5' option report_name 'self-diagnostics-report-$MODEL-$SERIAL' - option verbose '0' + option verbose '1' option compression_level '9' diff --git a/self-diagnostics/files/usr/sbin/self-diagnostics b/self-diagnostics/files/usr/sbin/self-diagnostics index 5b690fa70..c6748b0f0 100755 --- a/self-diagnostics/files/usr/sbin/self-diagnostics +++ b/self-diagnostics/files/usr/sbin/self-diagnostics @@ -116,15 +116,16 @@ config_load() exec_spec() { - local json_file exec_skip name timeout exec_timeout rc + local json_file exec_skip name timeout exec_timeout rc start_time end_time + start_time="$(date +%s)" json_file="$1" [ -z "$json_file" ] && { err_log "No/invalid spec json_file" return 1 } - log "Loading $json_file ..." + log "# Loading $json_file at ${start_time} ..." json_init json_load_file "${json_file}" || { @@ -238,7 +239,8 @@ exec_spec() json_select .. fi - log "Handling of $json_file done" + end_time="$(date +%s)" + log "# Handling of $json_file done, time: ${end_time}, time_spent: $((end_time - start_time)) sec" log "" }