Index: trunk/DataCheck/Monitoring/CheckStatus.sh
===================================================================
--- trunk/DataCheck/Monitoring/CheckStatus.sh	(revision 13064)
+++ trunk/DataCheck/Monitoring/CheckStatus.sh	(revision 13094)
@@ -31,11 +31,12 @@
    
    # check table for failed jobs
+   printprocesslog "INFO checking "$step" for failed jobs."
    where=" WHERE NOT ISNULL(fReturnCode) "
    where=$where" AND fStopTime > ADDDATE(NOW(), INTERVAL -25 HOUR)"              
    query="SELECT Count(*) FROM "$step"Status "$where
    num=`sendquery`
-   printprocesslog "WARN found in "$step" "$num" rows with errors."
    if [ $num -gt 0 ]
    then
+      printprocesslog "WARN found in "$step" "$num" rows with errors."
       sel=$selstart", '(', fReturnCode, ')')"
       query="SELECT "$sel" FROM "$step"Status "$where
@@ -47,4 +48,5 @@
    #   i.e. jobs which are running > 2 hours
    # check the last 27 hours
+   printprocesslog "INFO checking "$step" for crashed jobs."
    where=" WHERE NOT ISNULL(fStartTime) AND ISNULL(fStopTime) "
    where=$where" AND fStartTime < ADDDATE(NOW(), INTERVAL -2 HOUR)"
@@ -52,7 +54,7 @@
    query="SELECT Count(*) FROM "$step"Status "$where
    num=`sendquery`
-   printprocesslog "WARN found in "$step" "$num" crashed jobs."
    if [ $num -gt 0 ]
    then
+      printprocesslog "WARN found in "$step" "$num" crashed jobs."
       sel=$selstart", '(', fStartTime, ')')"
       query="SELECT "$sel" FROM "$step"Status "$where
