From 0dbbe73ae5ca4d447a63371a807456715b1a62f9 Mon Sep 17 00:00:00 2001 From: George Danchev Date: Mon, 4 Jul 2011 16:05:24 +0000 Subject: [PATCH] start a simple log file examination --- libisoburn/trunk/releng/run_all_releng | 32 ++++++++++++++++++-------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/libisoburn/trunk/releng/run_all_releng b/libisoburn/trunk/releng/run_all_releng index ad682298..80150455 100755 --- a/libisoburn/trunk/releng/run_all_releng +++ b/libisoburn/trunk/releng/run_all_releng @@ -63,18 +63,30 @@ fi printf "\n${SELF}: Stopped at ${DEND}.\n" if [ "${1}" == "-cleanup" ]; then - rm -f "${CLOG}" + rm -f "${CLOG}" else - E2=`date '+%s'` - let ES="${E2} - ${E1}" - printf "\n${SELF}: Total time elapsed ${ES} sec." - printf "\n${SELF}: stdout&stderr saved in ${CLOG}.\n" + E2=`date '+%s'` + let ES="${E2} - ${E1}" + printf "\n${SELF}: Total time elapsed ${ES} sec." -# TODO: work out a less noisy diff'ing technique! -# if [ -f "${CLOG}".prev -a -f "${CLOG}" ]; then -# printf "\n${SELF}: Log diff follows:\n" -# diff -Naur "${CLOG}".prev "${CLOG}" -# fi + ##### TODO: work out a less noisy diff'ing technique! + #if [ -f "${CLOG}".prev -a -f "${CLOG}" ]; then + # printf "\n${SELF}: Log diff follows:\n" + # diff -Naur "${CLOG}".prev "${CLOG}" + #fi + + ##### + printf "\n${SELF}: Std(out|err) logged in ${CLOG}." + printf "\n${SELF}: Log file examination follows:\n" + # severity classes of libdax_msgs.h in libburn and libisofs + # List of boring keywords: + # 'UPDATE' A pacifier message during long running operations. + # List of interesting keywords: + LIST_KWD="(NEVER|ABORT|FATAL|FAILURE|MISHAP|SORRY|WARNING|HINT|NOTE|DEBUG|ALL)" + + if [ -f "${CLOG}" ]; then + grep -n -PT "${LIST_KWD}" "${CLOG}" + fi fi