[Swift-commit] r2366 - log-processing/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu Dec 11 10:27:07 CST 2008


Author: benc
Date: 2008-12-11 10:27:06 -0600 (Thu, 11 Dec 2008)
New Revision: 2366

Added:
   log-processing/libexec/error-summary
   log-processing/libexec/makefile.errors
Modified:
   log-processing/libexec/makefile
Log:
file summarizing APPLICATION_EXCEPTION messages

Added: log-processing/libexec/error-summary
===================================================================
--- log-processing/libexec/error-summary	                        (rev 0)
+++ log-processing/libexec/error-summary	2008-12-11 16:27:06 UTC (rev 2366)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+TFN=$(mktemp /tmp/error-summary-XXXXXXXXX)
+
+grep APPLICATION_EXC $1 | sed 's/^.*DEBUG vdl:execute2 APPLICATION_EXCEPTION jobid=\([^ ]*\) - \(.*\)$/\1 \2/' > $TFN
+
+echo === overall summary ===
+echo count / message
+cat $TFN | cut -d ' ' -f 2- | sort | uniq -c | sort -n
+


Property changes on: log-processing/libexec/error-summary
___________________________________________________________________
Name: svn:executable
   + *

Modified: log-processing/libexec/makefile
===================================================================
--- log-processing/libexec/makefile	2008-12-10 16:32:56 UTC (rev 2365)
+++ log-processing/libexec/makefile	2008-12-11 16:27:06 UTC (rev 2366)
@@ -7,6 +7,7 @@
 include makefile.karatasks
 include makefile.webpage
 include makefile.kickstart
+include makefile.errors
 
 distributable: 
 	rm -f *.tmp log *.transitions tmp-*

Added: log-processing/libexec/makefile.errors
===================================================================
--- log-processing/libexec/makefile.errors	                        (rev 0)
+++ log-processing/libexec/makefile.errors	2008-12-11 16:27:06 UTC (rev 2366)
@@ -0,0 +1,3 @@
+
+error-summary.txt: $(LOG)
+	error-summary $< > $@




More information about the Swift-commit mailing list